Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
shutosheep authored and lerno committed Nov 23, 2024
1 parent 853c1ea commit 739c744
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/content/docs/Language Common/defer.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn void test()
return;
}
```
The `defer` runs **after** the other print statments, at the function return.
The `defer` runs **after** the other print statements, at the function return.

:::note
[Rethrow `!`](/language-common/optionals-essential/#using-the-rethrow-operator--to-unwrap-an-optional-value) unwraps the Optional result if present, afterwards the previously Optional variable is a normal variable again, if the Optional result is empty then the Excuse is returned from the function back to the caller.
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/Language Common/optionals-advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ fn void! main(String[] args)
int! a = test(); // IoError.FILE_NOT_FOUND
int! b = test(); // IoError.FILE_NOT_FOUND
// We can tell these appart by default assigning our own unique
// We can tell these apart by default assigning our own unique
// Excuse. Our custom Excuse is assigned only if an
// empty Optional is returned.
int! c = test() ?? NoHomework.DOG_ATE_MY_HOMEWORK?;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ ASCII value for a single character.

It is also possible to use 2, 4 or 8 character wide character literals. Such are interpreted
as `ushort`, `uint` and `ulong` respectively and are laid out in memory from left to right.
This means that the actual value depends on the [endianess](https://en.wikipedia.org/wiki/Endianness)
This means that the actual value depends on the [endianness](https://en.wikipedia.org/wiki/Endianness)
of the target.

- 2 character literals, e.g. `'C3'`, would convert to an ushort.
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/Language Overview/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Furthermore, underscore `_` may be used to add space between digits to improve r
- 4 character strings, e.g. `'TEST'`, converts to an uint or int.
- 8 character strings, e.g. `'FOOBAR11'` converts to an ulong or long.

Conversion is always done so that the character string has the correct ordering in memory. This means that the same characters may have different integer values on different architectures due to endianess.
Conversion is always done so that the character string has the correct ordering in memory. This means that the same characters may have different integer values on different architectures due to endianness.

##### Base64 and hex data literals

Expand Down

0 comments on commit 739c744

Please sign in to comment.