Skip to content

Commit ae92f2b

Browse files
author
jerry
committed
Update Suffix.md
Fix 'Suffix.md' example code
1 parent 33abb69 commit ae92f2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Guides/Suffix.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ collection until predicate returns `false` and skipping the remaining elements.
99
This example uses `suffix(while: )` to iterate through collection of integers
1010
from the end until the predicate returns false, in this case when `$0 <= 5`
1111
```swift
12-
(0...10).suffix(while: { $0 > 5 } // == [6,7,8,9,10]
12+
(0...10).suffix(while: { $0 > 5 }) // == [6,7,8,9,10]
1313
```
1414

1515
## Detailed Design

0 commit comments

Comments
 (0)