aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-04-14 12:14:44 +0100
committergingerBill <bill@gingerbill.org>2021-04-14 12:14:44 +0100
commitd6027091333dd26442fac35e95afdbea69b5127e (patch)
tree9e425ce9b71c19d24732e6ecbf68983de1c55582
parent8e1120bc09bbcebaca6a2ce6d90053275677e664 (diff)
Fix typo
-rw-r--r--core/slice/slice.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/slice/slice.odin b/core/slice/slice.odin
index 863ccd6cb..2c7d225a8 100644
--- a/core/slice/slice.odin
+++ b/core/slice/slice.odin
@@ -115,7 +115,7 @@ simple_equal :: proc(a, b: $T/[]$E) -> bool where intrinsics.type_is_simple_comp
}
-has_prefix :: proc(array: $T/[]$E, needle: T) -> bool where intrinsics.type_is_comparable(E) {
+has_prefix :: proc(array: $T/[]$E, needle: E) -> bool where intrinsics.type_is_comparable(E) {
n := len(needle);
if len(array) >= n {
return equal(array[:n], needle);
@@ -124,7 +124,7 @@ has_prefix :: proc(array: $T/[]$E, needle: T) -> bool where intrinsics.type_is_c
}
-has_suffix :: proc(array: $T/[]$E, needle: T) -> bool where intrinsics.type_is_comparable(E) {
+has_suffix :: proc(array: $T/[]$E, needle: E) -> bool where intrinsics.type_is_comparable(E) {
array := array;
m, n := len(array), len(needle);
if m >= n {