From 739c74462c6de3928d42abcde5ffe3c580cb5cfc Mon Sep 17 00:00:00 2001 From: Shuto Tamaoka Date: Sun, 24 Nov 2024 00:08:45 +0900 Subject: [PATCH] Fix some typos --- src/content/docs/Language Common/defer.md | 2 +- src/content/docs/Language Common/optionals-advanced.md | 2 +- .../docs/Language Fundamentals/basic-types-and-values.md | 2 +- src/content/docs/Language Overview/types.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/content/docs/Language Common/defer.md b/src/content/docs/Language Common/defer.md index a1e0a71a..51c4a5a9 100644 --- a/src/content/docs/Language Common/defer.md +++ b/src/content/docs/Language Common/defer.md @@ -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. diff --git a/src/content/docs/Language Common/optionals-advanced.md b/src/content/docs/Language Common/optionals-advanced.md index 8a492cae..cd7e9d7c 100644 --- a/src/content/docs/Language Common/optionals-advanced.md +++ b/src/content/docs/Language Common/optionals-advanced.md @@ -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?; diff --git a/src/content/docs/Language Fundamentals/basic-types-and-values.md b/src/content/docs/Language Fundamentals/basic-types-and-values.md index bebdf533..80138f31 100644 --- a/src/content/docs/Language Fundamentals/basic-types-and-values.md +++ b/src/content/docs/Language Fundamentals/basic-types-and-values.md @@ -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. diff --git a/src/content/docs/Language Overview/types.md b/src/content/docs/Language Overview/types.md index 51ba7ea7..6031e280 100644 --- a/src/content/docs/Language Overview/types.md +++ b/src/content/docs/Language Overview/types.md @@ -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