Skip to content

Commit 999aeee

Browse files
authored
Update bit.adoc with allowed range of n
bit(n) with n > 31 do not return reasonable values. This should be mentioned
1 parent bd29d5c commit 999aeee

File tree

1 file changed

+1
-1
lines changed
  • Language/Functions/Bits and Bytes

1 file changed

+1
-1
lines changed

Language/Functions/Bits and Bytes/bit.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Computes the value of the specified bit (bit 0 is 1, bit 1 is 2, bit 2 is 4, etc
2828

2929
[float]
3030
=== Parameters
31-
`n`: the bit whose value to compute
31+
`n`: the bit whose value to compute. 0 <= n < 32 (as it is intended to reflect the bits up to 31 of a uint32)
3232

3333

3434
[float]

0 commit comments

Comments
 (0)