Skip to content

Commit 5126879

Browse files
committed
Update documentation links for consistency and clarity
Signed-off-by: Apoll011 <[email protected]>
1 parent 2985d56 commit 5126879

File tree

7 files changed

+25
-25
lines changed

7 files changed

+25
-25
lines changed

book/control-flow/switch.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ matching extremely efficient, but it also means that [overloading](../functions/
215215
will have no effect.
216216

217217
Therefore, in environments where it is desirable to [overload](../functions/overload.md) the `==` operator for
218-
[standard types](../type/values-and-types.md) &ndash; though it is difficult to think of valid scenarios
218+
[standard types](../types/values-and-types.md) &ndash; though it is difficult to think of valid scenarios
219219
where you'd want `1 == 1` to return something other than `true` &ndash; avoid using the `switch`
220220
expression.
221221

@@ -225,5 +225,5 @@ Because the `switch` expression works through a look-up table, it is very effici
225225
number of cases; in fact, switching is an O(1) operation regardless of the size of the data and
226226
number of cases to match.
227227

228-
A long [`if`-`else if`](control-flow/if.md) chain becomes increasingly slower with each additional case because
228+
A long [`if`-`else if`](if.md) chain becomes increasingly slower with each additional case because
229229
essentially an O(n) _linear scan_ is performed.

book/control-flow/try-catch.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ Many script-oriented exceptions can be caught via `try` ... `catch`.
7878
| Unbound `this` | [object map](../types/object-maps.md) |
7979
| Data type mismatch | [object map](../types/object-maps.md) |
8080
| Assignment to a calculated/[constant](../variables/constants.md) value | [object map](../types/object-maps.md) |
81-
| [array](../types/arrays.md)/[string](types/strings-chars.md)/[bit-field](../types/bit-fields.md) indexing out-of-bounds | [object map](../types/object-maps.md) |
81+
| [array](../types/arrays.md)/[string](../types/strings-chars.md)/[bit-field](../types/bit-fields.md) indexing out-of-bounds | [object map](../types/object-maps.md) |
8282
| Indexing with an inappropriate data type | [object map](../types/object-maps.md) |
8383
| Error in property access | [object map](../types/object-maps.md) |
8484
| [`for`](for.md) statement on a type that is not iterable | [object map](../types/object-maps.md) |
8585
| Data race detected | [object map](../types/object-maps.md) |
8686
| Other runtime error | [object map](../types/object-maps.md) |
8787

88-
The error value in the `catch` clause is an [object map](types/object-maps.md) containing information on
88+
The error value in the `catch` clause is an [object map](../types/object-maps.md) containing information on
8989
the particular error, including its type, line and character position (if any), and source etc.
9090

9191
Some system exceptions _cannot_ be caught.

book/functions/helpers/string-fn.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ The following standard methods operate on [strings](../../types/strings-chars.md
3131
| `sub_string` | <ol><li>start position, counting from end if < 0</li><li>_(optional)_ number of characters to extract, none if ≤ 0, to end if omitted</li></ol> | extracts a sub-string |
3232
| `sub_string` | [range](../../variables/ranges.md) of characters to extract, from beginning if ≤ 0, to end if ≥ length | extracts a sub-string |
3333
| `split` | _none_ | splits the string by whitespaces, returning an [array](../../types/arrays.md) of string segments |
34-
| `split` | position to split at (in number of characters), counting from end if < 0, end if ≥ length | splits the string into two segments at the specified character position, returning an [array](../../arrays) of two string segments |
35-
| `split` | <ol><li>delimiter character/string</li><li>_(optional)_ maximum number of segments, 1 if < 1</li></ol> | splits the string by the specified delimiter, returning an [array](../../arrays) of string segments |
36-
| `split_rev` | <ol><li>delimiter character/string</li><li>_(optional)_ maximum number of segments, 1 if < 1</li></ol> | splits the string by the specified delimiter in reverse order, returning an [array](../../arrays) of string segments |
34+
| `split` | position to split at (in number of characters), counting from end if < 0, end if ≥ length | splits the string into two segments at the specified character position, returning an [array](../types/arrays.md) of two string segments |
35+
| `split` | <ol><li>delimiter character/string</li><li>_(optional)_ maximum number of segments, 1 if < 1</li></ol> | splits the string by the specified delimiter, returning an [array](../types/arrays.md) of string segments |
36+
| `split_rev` | <ol><li>delimiter character/string</li><li>_(optional)_ maximum number of segments, 1 if < 1</li></ol> | splits the string by the specified delimiter in reverse order, returning an [array](../types/arrays.md) of string segments |
3737
| `crop` | <ol><li>start position, counting from end if < 0</li><li>_(optional)_ number of characters to retain, none if ≤ 0, to end if omitted</li></ol> | retains only a portion of the string |
3838
| `crop` | [range](../../variables/ranges.md) of characters to retain, from beginning if ≤ 0, to end if ≥ length | retains only a portion of the string |
3939
| `replace` | <ol><li>target character/sub-string</li><li>replacement character/string</li></ol> | replaces a sub-string with another |

0 commit comments

Comments
 (0)