From d191f15b9fed8692eef13b938fc3b3bb59260673 Mon Sep 17 00:00:00 2001 From: Oskar Haarklou Veileborg Date: Thu, 5 Jan 2023 12:08:25 +0100 Subject: Update documentation --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') 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 } ``` -- cgit v1.2.3