gingerBill 4 years ago
parent
commit
d602709133
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core/slice/slice.odin

+ 2 - 2
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);
 	n := len(needle);
 	if len(array) >= n {
 	if len(array) >= n {
 		return equal(array[:n], needle);
 		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;
 	array := array;
 	m, n := len(array), len(needle);
 	m, n := len(array), len(needle);
 	if m >= n {
 	if m >= n {