diff --git a/Guides/Suffix.md b/Guides/Suffix.md index f772f3c7..2f2b5b80 100644 --- a/Guides/Suffix.md +++ b/Guides/Suffix.md @@ -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