File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Sources/TSPL/TSPL.docc/GuidedTour Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -270,6 +270,7 @@ Arrays automatically grow as you add elements.
270270``` swift
271271fruits.append (" blueberries" )
272272print (fruits)
273+ // Prints "["strawberries", "grapes", "tangerines", "blueberries"]"
273274```
274275
275276<!--
@@ -278,7 +279,7 @@ print(fruits)
278279 ```swifttest
279280 -> fruits.append("blueberries")
280281 -> print(fruits)
281- << ["strawberries", "grapes", "tangerines", "blueberries"]
282+ <- ["strawberries", "grapes", "tangerines", "blueberries"]
282283 ```
283284-->
284285
@@ -469,6 +470,7 @@ using the same name for that unwrapped value.
469470if let nickname {
470471 print (" Hey, \( nickname ) " )
471472}
473+ // Doesn't print anything, because nickname is nil.
472474```
473475
474476<!--
You can’t perform that action at this time.
0 commit comments