Merge pull request #6650 from nathanielknight/fix-shiftLeftBy-example

Minor fix to the docstring of `Num.shiftLeftBy`
This commit is contained in:
Richard Feldman 2024-04-19 07:19:48 -04:00 committed by GitHub
commit da129c9a41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1001,7 +1001,7 @@ bitwiseNot = \n ->
## ```roc
## shiftLeftBy 0b0000_0011 2 == 0b0000_1100
##
## 0b0000_0101 |> shiftLeftBy 2 == 0b0000_1100
## 0b0000_0101 |> shiftLeftBy 2 == 0b0001_0100
## ```
## In some languages `shiftLeftBy` is implemented as a binary operator `<<`.
shiftLeftBy : Int a, U8 -> Int a