Use ~string for Ordered.
diff --git a/btree_generic.go b/btree_generic.go index 5da3967..ccf17b4 100644 --- a/btree_generic.go +++ b/btree_generic.go
@@ -128,7 +128,7 @@ // Ordered represents the set of types for which the '<' operator work. type Ordered interface { - ~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~float32 | ~float64 | string + ~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~float32 | ~float64 | ~string } // Less[T] returns a default LessFunc that uses the '<' operator for types that support it.