aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorOskar Haarklou Veileborg <ohv1020@hotmail.com>2023-01-05 12:08:25 +0100
committerOskar Haarklou Veileborg <ohv1020@hotmail.com>2023-01-18 09:03:56 +0100
commitd191f15b9fed8692eef13b938fc3b3bb59260673 (patch)
tree1a4bdedc9fc17535130f58551fadc3511630372b /README.md
parentWiden key constraint to 'any' for maps and sets (diff)
downloadpds-d191f15b9fed8692eef13b938fc3b3bb59260673.tar.gz
pds-d191f15b9fed8692eef13b938fc3b3bb59260673.tar.xz
Update documentation
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
}
```