Skip to content

Commit cffb44d

Browse files
authored
Update Indexed.swift (#8)
1 parent af3eab4 commit cffb44d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Algorithms/Indexed.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ extension Collection {
6868
///
6969
/// let names: Set = ["Sofia", "Camilla", "Martina", "Mateo", "Nicolás"]
7070
/// var shorterIndices: [Set<String>.Index] = []
71-
/// for (i, name) in zip(names.indices, names) {
71+
/// for (i, name) in names.indexed() {
7272
/// if name.count <= 5 {
7373
/// shorterIndices.append(i)
7474
/// }

0 commit comments

Comments
 (0)