aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index c547383..177d37d 100644
--- a/README.md
+++ b/README.md
@@ -241,7 +241,7 @@ Hashers are fairly simple. They only need to generate hashes for a given key
and check equality given two keys.
```go
-type Hasher[K comparable] interface {
+type Hasher[K any] interface {
Hash(key K) uint32
Equal(a, b K) bool
}
@@ -277,7 +277,7 @@ Comparers on have one method—`Compare()`. It works the same as the
`1` if a is greater than `b`, and returns `0` if `a` is equal to `b`.
```go
-type Comparer[K comparable] interface {
+type Comparer[K any] interface {
Compare(a, b K) int
}
```