summaryrefslogtreecommitdiff
path: root/lib/std/hashfuncs.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/hashfuncs.myr')
-rw-r--r--lib/std/hashfuncs.myr12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/std/hashfuncs.myr b/lib/std/hashfuncs.myr
index fa72f90..5ad1180 100644
--- a/lib/std/hashfuncs.myr
+++ b/lib/std/hashfuncs.myr
@@ -11,8 +11,8 @@ use "utf"
pkg std =
const siphash24 : (data : byte[:], seed : byte[16] -> uint64)
- impl comparable @a[:] =
- cmp = {a, b
+ impl equatable @a[:] =
+ eq = {a, b
-> sleq(a, b)
}
;;
@@ -23,8 +23,8 @@ pkg std =
}
;;
- impl comparable @a::(integral,numeric) =
- cmp = {a, b
+ impl equatable @a::(integral,numeric) =
+ eq = {a, b
-> a == b
}
;;
@@ -35,8 +35,8 @@ pkg std =
}
;;
- impl comparable @a# =
- cmp = {a, b
+ impl equatable @a# =
+ eq = {a, b
-> a == b
}
;;