From 8a2720554bed99e06f2820660bb4b85da9353e1a Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Thu, 15 Sep 2022 03:37:44 +1000 Subject: [PATCH] A few tweaks to the types page --- types.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types.md b/types.md index dbb63ef..af7c1fd 100644 --- a/types.md +++ b/types.md @@ -10,10 +10,10 @@ The types available are: | Type | Signature | Description | | --- | --- | --- | -| null | null | Represents a lack of any meaningful value, also has the type of "null" | +| null | null | Represents a lack of any meaningful value | | boolean | bool | Either true or false | -| integer | int | Any whole number. The limits are implementation dependant | -| float | float | Any floating point number. The limits are implementation dependant | +| integer | int | Any whole number. The limits are implementation dependent | +| float | float | Any floating point number. The limits are implementation dependent | | string | string | A series of characters, forming text | | array | n/a | A series of values arranged sequentially in memory, indexable with an integer | | array | n/a | A series of key-value pairs stored in a hash-table, indexable with the keys | @@ -23,7 +23,7 @@ The types available are: ## Specifying Types For Variables -To specify a type for a variable, use `:` followed by the signature. In this example, the variable `total` can only ever hold integers: +To specify a type for a variable, use `:` followed by the signature. In this example, the variable `total` can only ever hold integers (or `null`): ``` var total: int = 0;