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) /// }