Skip to content

Commit 7275aa2

Browse files
Change element to result
1 parent 41d1589 commit 7275aa2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stdlib/public/core/Stride.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ public struct StrideToGenerator<Element : Strideable> : GeneratorType {
135135
if stride > 0 ? current >= end : current <= end {
136136
return nil
137137
}
138-
let element = current
138+
let result = current
139139
current += stride
140-
return element
140+
return result
141141
}
142142
}
143143

@@ -209,9 +209,9 @@ public struct StrideThroughGenerator<Element : Strideable> : GeneratorType {
209209
}
210210
return nil
211211
}
212-
let element = current
212+
let result = current
213213
current += stride
214-
return element
214+
return result
215215
}
216216
}
217217

0 commit comments

Comments
 (0)