We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a7fb7c commit 2c27bfdCopy full SHA for 2c27bfd
1 file changed
assert.go
@@ -51,8 +51,8 @@ func Number(a any) bool {
51
}
52
53
// Range returns true if the value is within the range.
54
-func Range[T constraints.Number](a, min, max T) bool {
55
- return a >= min && a <= max
+func Range[T constraints.Number](a, minimum, maximum T) bool {
+ return a >= minimum && a <= maximum
56
57
58
// Zero returns true if the value is the zero value.
0 commit comments