Skip to content

Commit

Permalink
Use ~string for Ordered.
Browse files Browse the repository at this point in the history
  • Loading branch information
gconnell committed Jun 4, 2022
1 parent be61f00 commit 770c3d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion btree_generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ type ItemIteratorG[T any] func(item T) bool

// 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.
Expand Down

0 comments on commit 770c3d8

Please sign in to comment.