We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
element
result
1 parent 41d1589 commit 7275aa2Copy full SHA for 7275aa2
stdlib/public/core/Stride.swift
@@ -135,9 +135,9 @@ public struct StrideToGenerator<Element : Strideable> : GeneratorType {
135
if stride > 0 ? current >= end : current <= end {
136
return nil
137
}
138
- let element = current
+ let result = current
139
current += stride
140
- return element
+ return result
141
142
143
@@ -209,9 +209,9 @@ public struct StrideThroughGenerator<Element : Strideable> : GeneratorType {
209
210
211
212
213
214
215
216
217
0 commit comments