From cffb44dceb9e38d93350ac4eae852b5a0ef8a66a Mon Sep 17 00:00:00 2001 From: Ian Keen Date: Thu, 8 Oct 2020 10:48:44 -0700 Subject: [PATCH] Update Indexed.swift (#8) --- Sources/Algorithms/Indexed.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Algorithms/Indexed.swift b/Sources/Algorithms/Indexed.swift index af022fc..80f6498 100644 --- a/Sources/Algorithms/Indexed.swift +++ b/Sources/Algorithms/Indexed.swift @@ -68,7 +68,7 @@ extension Collection { /// /// let names: Set = ["Sofia", "Camilla", "Martina", "Mateo", "Nicolás"] /// var shorterIndices: [Set.Index] = [] - /// for (i, name) in zip(names.indices, names) { + /// for (i, name) in names.indexed() { /// if name.count <= 5 { /// shorterIndices.append(i) /// }