Skip to content

Commit 8ae873a

Browse files
committed
Fix additional numbered/bullet list errors.
1 parent d7a9bdb commit 8ae873a

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

Sources/TSPL/TSPL.docc/GuidedTour/GuidedTour.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,9 +1294,9 @@ You can provide an explicit name in parentheses after `set`.
12941294
Notice that the initializer for the `EquilateralTriangle` class
12951295
has three different steps:
12961296

1297-
- Setting the value of properties that the subclass declares.
1298-
- Calling the superclass's initializer.
1299-
- Changing the value of properties defined by the superclass.
1297+
1. Setting the value of properties that the subclass declares.
1298+
2. Calling the superclass's initializer.
1299+
3. Changing the value of properties defined by the superclass.
13001300
Any additional setup work that uses methods, getters, or setters
13011301
can also be done at this point.
13021302

Sources/TSPL/TSPL.docc/LanguageGuide/AdvancedOperators.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ whereas shifting it to the right by one position halves its value.
202202

203203
The bit-shifting behavior for unsigned integers is as follows:
204204

205-
- Existing bits are moved to the left or right by the requested number of places.
206-
- Any bits that are moved beyond the bounds of the integer's storage are discarded.
207-
- Zeros are inserted in the spaces left behind
205+
1. Existing bits are moved to the left or right by the requested number of places.
206+
2. Any bits that are moved beyond the bounds of the integer's storage are discarded.
207+
3. Zeros are inserted in the spaces left behind
208208
after the original bits are moved to the left or right.
209209

210210
This approach is known as a *logical shift*.

Sources/TSPL/TSPL.docc/LanguageGuide/Concurrency.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -883,11 +883,11 @@ the temperature logger is in a temporary inconsistent state.
883883
Preventing multiple tasks from interacting with the same instance simultaneously
884884
prevents problems like the following sequence of events:
885885

886-
- Your code calls the `update(with:)` method.
886+
1. Your code calls the `update(with:)` method.
887887
It updates the `measurements` array first.
888-
- Before your code can update `max`,
888+
2. Before your code can update `max`,
889889
code elsewhere reads the maximum value and the array of temperatures.
890-
- Your code finishes its update by changing `max`.
890+
3. Your code finishes its update by changing `max`.
891891

892892
In this case,
893893
the code running elsewhere would read incorrect information

Sources/TSPL/TSPL.docc/ReferenceManual/Declarations.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -884,11 +884,11 @@ repeatGreeting("Hello, world!", count: 2) // count is labeled, greeting is not
884884

885885
In-out parameters are passed as follows:
886886

887-
- When the function is called,
887+
1. When the function is called,
888888
the value of the argument is copied.
889-
- In the body of the function,
889+
2. In the body of the function,
890890
the copy is modified.
891-
- When the function returns,
891+
3. When the function returns,
892892
the copy's value is assigned to the original argument.
893893

894894
This behavior is known as *copy-in copy-out*

Sources/TSPL/TSPL.docc/ReferenceManual/Statements.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ while <#condition#> {
123123

124124
A `while` statement is executed as follows:
125125

126-
- The *condition* is evaluated.If `true`, execution continues to step 2.
126+
1. The *condition* is evaluated.If `true`, execution continues to step 2.
127127
If `false`, the program is finished executing the `while` statement.
128-
- The program executes the *statements*, and execution returns to step 1.
128+
2. The program executes the *statements*, and execution returns to step 1.
129129

130130
Because the value of the *condition* is evaluated before the *statements* are executed,
131131
the *statements* in a `while` statement can be executed zero or more times.
@@ -166,9 +166,9 @@ repeat {
166166

167167
A `repeat`-`while` statement is executed as follows:
168168

169-
- The program executes the *statements*,
169+
1. The program executes the *statements*,
170170
and execution continues to step 2.
171-
- The *condition* is evaluated.If `true`, execution returns to step 1.
171+
2. The *condition* is evaluated.If `true`, execution returns to step 1.
172172
If `false`, the program is finished executing the `repeat`-`while` statement.
173173

174174
Because the value of the *condition* is evaluated after the *statements* are executed,

0 commit comments

Comments
 (0)