Skip to content

Commit 36b23b0

Browse files
authored
Add missing "prints" comment (#87)
Fixes rdar://103039462
2 parents d14f2a8 + 256dc46 commit 36b23b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ Arrays automatically grow as you add elements.
270270
```swift
271271
fruits.append("blueberries")
272272
print(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.
469470
if let nickname {
470471
print("Hey, \(nickname)")
471472
}
473+
// Doesn't print anything, because nickname is nil.
472474
```
473475

474476
<!--

0 commit comments

Comments
 (0)