From 2fd42d5145a6354f4e9736711a746ad99cb0295c Mon Sep 17 00:00:00 2001 From: Javier Date: Thu, 12 Oct 2023 14:43:20 +0200 Subject: [PATCH] Update primitives.md Fixed compile time error error. --- content/content/primitives.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/content/primitives.md b/content/content/primitives.md index 70bc999..d085c5c 100644 --- a/content/content/primitives.md +++ b/content/content/primitives.md @@ -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.