diff options
author | Juan J. Martinez <jjm@usebox.net> | 2022-08-30 09:56:34 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2022-08-30 09:56:34 +0100 |
commit | 5d1b2c7511443e0668be1ada2b3c30c41638070d (patch) | |
tree | aa39855e77c987143435854cb44b884beca8bcf0 /language.md | |
parent | 00a6188202275afc0560df3fd7b32d6ce4f93871 (diff) | |
download | micro-lang-hs-5d1b2c7511443e0668be1ada2b3c30c41638070d.tar.gz micro-lang-hs-5d1b2c7511443e0668be1ada2b3c30c41638070d.zip |
Typos
Diffstat (limited to 'language.md')
-rw-r--r-- | language.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/language.md b/language.md index 41f6897..1a52df9 100644 --- a/language.md +++ b/language.md @@ -64,7 +64,7 @@ u16(a) + b; # 20: u16 | Type | Description | Samples | | --- | --- | --- | -| ([params]) [-> [return]] | functions | `() { return; }` | +| ([parameters]) [-> [return]] | functions | `() { return; }` | Functions can be defined with `def` when they have a name, or as anonymous using the lambda syntax. @@ -108,7 +108,7 @@ var double: (u8) -> u8 = (a: u8): u8 { double(10); # 20 ``` -Anomymous functions can only access local variables (closures aren't supported): +Anonymous functions can only access local variables (closures aren't supported): ``` def closure(a: u8): () -> u8 { return (): u8 { @@ -127,7 +127,7 @@ private def dec(a: u8): u8 { ### Special value: nil -`nil` is a reference not pointing to a value, used for example with variables with type function. +`nil` is a reference not pointing to a value, used for example on variables with type function. ``` # fn doesn't hold a reference @@ -151,7 +151,7 @@ var ( ); ``` -Vaiables must be initialized, there are not default values. +Variables must be initialized, there are not default values. ### Constants |