From ae92f2b33f5a7bfe1a315c644aedd161ae0ca87e Mon Sep 17 00:00:00 2001 From: jerry Date: Fri, 12 Apr 2024 16:09:42 +0800 Subject: [PATCH] Update Suffix.md Fix 'Suffix.md' example code --- Guides/Suffix.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Guides/Suffix.md b/Guides/Suffix.md index f772f3c..2f2b5b8 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