summaryrefslogtreecommitdiff
path: root/lib/std/hassuffix.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/hassuffix.myr')
-rw-r--r--lib/std/hassuffix.myr6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/std/hassuffix.myr b/lib/std/hassuffix.myr
index 6f32d1d..622f024 100644
--- a/lib/std/hassuffix.myr
+++ b/lib/std/hassuffix.myr
@@ -1,4 +1,6 @@
-use "sleq"
+use "traits"
+use "hashfuncs"
+
pkg std =
const hassuffix : (s : byte[:], suff : byte[:] -> bool)
;;
@@ -8,7 +10,7 @@ const hassuffix = {s, suff
if suff.len <= s.len
tail = s[s.len - suff.len:]
- -> sleq(tail, suff)
+ -> eq(tail, suff)
;;
-> false
}