From d6027091333dd26442fac35e95afdbea69b5127e Mon Sep 17 00:00:00 2001 From: gingerBill Date: Wed, 14 Apr 2021 12:14:44 +0100 Subject: [PATCH] Fix typo --- core/slice/slice.odin | 4 ++-- 1 file 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 {