From 5d1b2c7511443e0668be1ada2b3c30c41638070d Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Tue, 30 Aug 2022 09:56:34 +0100 Subject: Typos --- language.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'language.md') 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 -- cgit v1.2.3