Skip to content

Commit 12e670a

Browse files
committed
Merge pull request #464 from nielsandriesse/patch-6
Make local variable name more expressive
2 parents ee57c4b + 7275aa2 commit 12e670a

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 ret = current
138+
let result = current
139139
current += stride
140-
return ret
140+
return result
141141
}
142142
}
143143

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

0 commit comments

Comments
 (0)