Merge pull request #227 from CheATSlark/main

Update Suffix.md
This commit is contained in:
Guillaume Lessard authored and GitHub committed 2024-06-25 11:01:42 -07:00
commit 09dc5e4354
1 file changed
+1 -1
+1 -1
View File
@@ -9,7 +9,7 @@ collection until predicate returns `false` and skipping the remaining elements.
This example uses `suffix(while: )` to iterate through collection of integers
from the end until the predicate returns false, in this case when `$0 <= 5`
```swift
(0...10).suffix(while: { $0 > 5 } // == [6,7,8,9,10]
(0...10).suffix(while: { $0 > 5 }) // == [6,7,8,9,10]
```
## Detailed Design