We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cb1ee6 commit 5409b12Copy full SHA for 5409b12
Sources/TSPL/TSPL.docc/GuidedTour/GuidedTour.md
@@ -316,15 +316,9 @@ occupations = [:]
316
```
317
-->
318
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
--->
+If you're assigning an empty array or dictionary to a new variable,
+or another place where there isn't any type information,
+you need to specify the type.
328
329
```swift
330
let emptyArray: [String] = []
0 commit comments