Skip to content

Commit

Permalink
Update primitives.md
Browse files Browse the repository at this point in the history
Fixed compile time error error.
  • Loading branch information
petacreepers23 authored and flaviut committed Oct 14, 2023
1 parent ee64b8a commit 2fd42d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/content/primitives.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let
a: int8 = 0x7F # Works
b: uint8 = 0b1111_1111 # Works
d = 0xFF # type is int
c: uint8 = 256 # Compile time error
c: uint8 = 256 # Gets truncated to 0, 257 will be 1...
```

Precedence rules are the same as in most other languages, but instead of `^`, `&`, `|`, `>>`, `<<`, the `xor`, `and`, `or`, `shr`, `shl` operators are used, respectively.
Expand Down

0 comments on commit 2fd42d5

Please sign in to comment.