Skip to content

Commit 5409b12

Browse files
committed
Restore text accidentally lost in a rebase.
1 parent 1cb1ee6 commit 5409b12

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -316,15 +316,9 @@ occupations = [:]
316316
```
317317
-->
318318

319-
If type information can be inferred,
320-
you can write an empty array as `[]`
321-
and an empty dictionary as `[:]` ---
322-
for example, when you set a new value for a variable
323-
or pass an argument to a function.
324-
325-
<!--
326-
iBooks Store screenshot begins here.
327-
-->
319+
If you're assigning an empty array or dictionary to a new variable,
320+
or another place where there isn't any type information,
321+
you need to specify the type.
328322

329323
```swift
330324
let emptyArray: [String] = []

0 commit comments

Comments
 (0)