Skip to content

Commit e0d0bcd

Browse files
authored
Change array name in tutorial due to the 'text_list' render problem (#6160)
* change word array name to 'wordList' * spelling error in spy version
1 parent c8d75e0 commit e0d0bcd

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

docs/projects/heads-guess.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ game.startCountdown(30000)
1515

1616
## {Step 2}
1717

18-
Create a ``||arrays:text list||`` of words to guess. You will find **Arrays** under **Advanced**.
18+
Create a new array of words to guess and name it ``||arrays:wordList||``. You will find **Arrays** under **Advanced**.
1919

2020
```blocks
21-
let text_list: string[] = []
22-
text_list = ["PUPPY", "CLOCK", "NIGHT"]
21+
let wordList: string[] = []
22+
wordList = ["PUPPY", "CLOCK", "NIGHT"]
2323
game.startCountdown(30000)
2424
```
2525

@@ -35,29 +35,29 @@ input.onGesture(Gesture.LogoUp, function () {
3535

3636
## {Step 4}
3737

38-
The items in ``||arrays:text list||`` are numbered ``0`` to ``length - 1``.
38+
The items in ``||arrays:wordList||`` are numbered ``0`` to ``length - 1``.
3939
Add code to pick a ``||math:random||`` ``||variables:index||``.
4040

4141
```blocks
42-
let text_list: string[] = []
42+
let wordList: string[] = []
4343
let index = 0
4444
input.onGesture(Gesture.LogoUp, function () {
4545
// @highlight
46-
index = randint(0, text_list.length - 1)
46+
index = randint(0, wordList.length - 1)
4747
})
4848
```
4949

5050
## {Step 5}
5151

52-
Add code to ``||basic:show||`` the value of the item stored at ``||variables:index||`` in ``||arrays:text list||``.
52+
Add code to ``||basic:show||`` the value of the item stored at ``||variables:index||`` in ``||arrays:wordList||``.
5353

5454
```blocks
55-
let text_list: string[] = []
55+
let wordList: string[] = []
5656
let index = 0
5757
input.onGesture(Gesture.LogoUp, function () {
58-
index = randint(0, text_list.length - 1)
58+
index = randint(0, wordList.length - 1)
5959
// @highlight
60-
basic.showString(text_list[index])
60+
basic.showString(wordList[index])
6161
})
6262
```
6363

@@ -84,7 +84,7 @@ input.onGesture(Gesture.ScreenDown, function () {
8484

8585
## {Step 8}
8686

87-
Add anonther event to run code when the @boardname@ ``||input:screen||`` is pointing ``||input:up||``.
87+
Add another event to run code when the @boardname@ ``||input:screen||`` is pointing ``||input:up||``.
8888
This is the gesture for a pass.
8989

9090
```blocks

docs/projects/spy/heads-guess.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ input.onGesture(Gesture.ScreenDown, function () {
8989

9090
## {Step 8}
9191

92-
Add anonther event to run code when a gesture has the @boardname@ ``||input:screen||`` is
92+
Add another event to run code when a gesture has the @boardname@ ``||input:screen||`` is
9393
pointing ``||input:up||``. This is the gesture for a pass.
9494

9595
```spy

0 commit comments

Comments
 (0)