Skip to content

Commit 1b59bb8

Browse files
committed
Add missing "prints" comment.
The old tested version used << for a silent expectation, so it might have been intentional that we omitted this. However, the commit [1] that added this example doesn't call out any reason for omitting the "prints" comment, so I'm guessing it was an oversight. Either way, it's better to be consistent -- this was the only call to print(...) that didn't have a comment. [1] dda4562
1 parent b9cce44 commit 1b59bb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 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

0 commit comments

Comments
 (0)