aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-08-30 10:10:23 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-08-30 10:10:23 +0100
commit49940ac6b38204c4b1eb60e9dc1c553c331ac122 (patch)
tree7909f994d4d33091a24007d419bcc368da2d4569
parent0d7dafe6571b5ef22aa3f8b8baae33284acaeaee (diff)
downloadmicro-lang-hs-49940ac6b38204c4b1eb60e9dc1c553c331ac122.tar.gz
micro-lang-hs-49940ac6b38204c4b1eb60e9dc1c553c331ac122.zip
Rewording
-rw-r--r--language.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/language.md b/language.md
index 1a52df9..de4b87d 100644
--- a/language.md
+++ b/language.md
@@ -155,7 +155,7 @@ Variables must be initialized, there are not default values.
### Constants
-Constant are not variables, they don't use memory.
+Constant are immutable values and no memory is allocated for them:
```
const K: u8 = 10;
```
@@ -168,7 +168,7 @@ const (
);
```
-Must be a constant expression and that can be resolved at compilation time.
+Must be resolved at compilation time.
```
var a: u8 = 1;