Skip to content

Commit fb58bb5

Browse files
authored
Merge pull request #441 from oguzutku1745/update-operators-shr-wrapped
Update shr_wrapped
2 parents 1ae7888 + 1a7efb9 commit fb58bb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/leo/04_operators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ let a: u8 = 128u8.shr_wrapped(7u8); // 1u8
11371137

11381138
#### Description
11391139

1140-
Shifts `first` right by `second` bits, wrapping around at the boundary of the type, storing the result in `destination`.
1140+
Shifts `first` right by `second` bits, wrapping around at the boundary of the type, storing the result in `destination`. The shift distance is masked to the bit width of `first`, ensuring that shifting by `n` is equivalent to shifting by `n % bit_size`.
11411141

11421142
#### Supported Types
11431143

0 commit comments

Comments
 (0)