Skip to content

Commit 5dab09b

Browse files
committed
Take a different approach at the rewrite.
With the previous approach, I was trying to avoid putting prose punctuation text to code voice punctuation, but that isn't actually as much risk of confusion as I expected. The "for example" about functions and variables is a detail that was needed in the old form, to explain when you can use the literal syntax, but isn't really needed now. Incorporates feedback from @krilnon.
1 parent 5409b12 commit 5dab09b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,9 @@ print(fruits)
296296
```
297297
-->
298298

299-
To create an empty array, write `[]`
300-
and to create empty dictionary write `[:]` ---
301-
for example, when you set a new value for a variable
302-
or pass an argument to a function.
299+
You also use brackets to write an empty array or dictionary.
300+
For an array, write `[]`,
301+
and for a dictionary, write `[:]`.
303302

304303
```swift
305304
fruits = []

0 commit comments

Comments
 (0)