From 96b020ce62e0174d5cfbfbd1e6b93bdf075a6391 Mon Sep 17 00:00:00 2001 From: Karol Stasiak Date: Wed, 31 Jul 2019 02:37:40 +0200 Subject: [PATCH] Docs: Fix some typos --- docs/abi/variable-storage.md | 2 +- docs/api/command-line.md | 2 +- docs/lang/literals.md | 4 ++-- docs/lang/text.md | 4 ++-- docs/lang/types.md | 2 +- docs/stdlib/cbm_file.md | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/abi/variable-storage.md b/docs/abi/variable-storage.md index c022e513..6246e4cf 100644 --- a/docs/abi/variable-storage.md +++ b/docs/abi/variable-storage.md @@ -56,7 +56,7 @@ The implementation depends on the target architecture: it's implemented as a separate 256-byte memory area plus a single byte for the stack pointer, exclusively for local stack variables; using it can help against stack overflows -* on 8080 and LR35902, the address is calculated from the stackpointer into the HL register pair +* on 8080 and LR35902, the address is calculated from the stack pointer into the HL register pair * on Z80, the IX register is used as the base pointer; unlike all the previous platforms, this makes stack-allocated variables independent from other stack operations diff --git a/docs/api/command-line.md b/docs/api/command-line.md index dd8875b8..005b9128 100644 --- a/docs/api/command-line.md +++ b/docs/api/command-line.md @@ -138,7 +138,7 @@ Default: 4 if targeting a 6502-based architecture, 0 otherwise. * `-fdecimal-mode`, `-fno-decimal-mode` – Whether hardware decimal mode should be used (6502 only). -If disabled, a sofware decimal mode will be used. +If disabled, a software decimal mode will be used. `.ini` equivalent: `decimal_mode`. Default: no if targeting Ricoh, yes otherwise. diff --git a/docs/lang/literals.md b/docs/lang/literals.md index 88ad2a4e..d90743d8 100644 --- a/docs/lang/literals.md +++ b/docs/lang/literals.md @@ -21,7 +21,7 @@ It is not allowed in any other places. String literals can be used as either array initializers or expressions of type `pointer`. -String literals are equivalent to constanr arrays. Writing to them via their pointer is undefined behaviour. +String literals are equivalent to constant arrays. Writing to them via their pointer is undefined behaviour. If a string literal is used as an expression, then the text data will be located in the default code segment, regardless of which code segment the current function is located it. This may be subject to change in future releases. @@ -97,7 +97,7 @@ You can create a constant of a given struct type by listing constant values of f point(5,6) -## Array initialisers +## Array initializers An array is initialized with either: diff --git a/docs/lang/text.md b/docs/lang/text.md index e14a306e..2715e14f 100644 --- a/docs/lang/text.md +++ b/docs/lang/text.md @@ -94,7 +94,7 @@ Encoding | lowercase letters | backslash | pound | yen | katakana | card suits `msx_ru` | yes | yes | no | no | no | yes all the rest | yes | yes | no | no | no | no -1. `pet`, `origpet` and petscr` cannot display card suit symbols and lowercase letters at the same time. +1. `pet`, `origpet` and `petscr` cannot display card suit symbols and lowercase letters at the same time. Card suit symbols are only available in graphics mode, in which lowercase letters are displayed as uppercase and uppercase letters are displayed as symbols. @@ -110,7 +110,7 @@ then text and character literals containing lowercase letters are automatically ##### Escape sequence availability Encoding | new line | braces | backspace | cursor movement | text colour | reverse | background colour ---|--|--|--|--|--|-- +--|--|--|--|--|--|--|-- `pet`,`petjp` | yes | no | no | yes | yes | yes | no `origpet` | yes | no | no | yes | no | yes | no `oldpet` | yes | no | no | yes | no | yes | no diff --git a/docs/lang/types.md b/docs/lang/types.md index 1a6b3914..027fb861 100644 --- a/docs/lang/types.md +++ b/docs/lang/types.md @@ -122,7 +122,7 @@ then the enumeration is considered _plain_. Plain enumeration types can be used For plain enumerations, a constant `.count` is defined, equal to the number of variants in the enumeration. -Assigment between numeric types and enumerations is not possible without an explicit type cast: +Assignment between numeric types and enumerations is not possible without an explicit type cast: enum E { EA, EB } byte b diff --git a/docs/stdlib/cbm_file.md b/docs/stdlib/cbm_file.md index 800b06e2..331f813e 100644 --- a/docs/stdlib/cbm_file.md +++ b/docs/stdlib/cbm_file.md @@ -76,6 +76,6 @@ TODO: buggy. #### void putbyte_safe(byte b) -Wrires a byte from file. +Writes a byte from file. Sets `errno`. TODO: buggy.