Skip to content

Commit 1c2c9cc

Browse files
committed
helpy/ComparableNumber: update to require underlying type, not exact type
1 parent 7cf9737 commit 1c2c9cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interfaces.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package helpy
22

33
type ComparableNumber interface {
4-
int8 | int16 | int32 | int | int64 | uint8 | uint16 | uint32 | uint | uint64 | uintptr
4+
~int8 | ~int16 | ~int32 | ~int | ~int64 | ~uint8 | ~uint16 | ~uint32 | ~uint | ~uint64 | ~uintptr
55
}
66

77
type Number interface {

0 commit comments

Comments
 (0)