mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Update Num.roc
fixed typos Signed-off-by: Becker A. <awqatty.b@gmail.com>
This commit is contained in:
parent
7b1c009ca2
commit
779b948772
1 changed files with 2 additions and 2 deletions
|
@ -1054,7 +1054,7 @@ shiftLeftBy : Int a, U8 -> Int a
|
|||
##
|
||||
## The most significant bits are copied from the current.
|
||||
## ```
|
||||
## shiftRightBy 0b0000_0011 2 == 0b0000_1100
|
||||
## shiftRightBy 0b0000_1100 2 == 0b0000_0011
|
||||
##
|
||||
## 0b0001_0100 |> shiftRightBy 2 == 0b0000_0101
|
||||
##
|
||||
|
@ -1065,7 +1065,7 @@ shiftRightBy : Int a, U8 -> Int a
|
|||
|
||||
## Bitwise logical right shift of a number by another
|
||||
##
|
||||
## The most significant bits always become 0. This means that shifting left is
|
||||
## The most significant bits always become 0. This means that shifting right is
|
||||
## like dividing by factors of two for unsigned integers.
|
||||
## ```
|
||||
## shiftRightBy 0b0010_1000 2 == 0b0000_1010
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue