mirror of
https://github.com/KarolS/millfork.git
synced 2026-04-24 12:16:29 +00:00
Docs: Fix some typos
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
+1
-1
@@ -122,7 +122,7 @@ then the enumeration is considered _plain_. Plain enumeration types can be used
|
||||
For plain enumerations, a constant `<name>.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
|
||||
|
||||
Reference in New Issue
Block a user