File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -25,23 +25,23 @@ extension MutableCollection where Self: BidirectionalCollection {
25
25
/// Output:
26
26
/// [p o n m e f g h i j k l d c b a]
27
27
/// ^ ^
28
- /// f l
28
+ /// lower upper
29
29
///
30
- /// - Postcondition: For returned indices `(f, l )`:
31
- /// `f == limit || l == limit`
30
+ /// - Postcondition: For returned indices `(lower, upper )`:
31
+ /// `lower == limit || upper == limit`
32
32
@usableFromInline
33
33
@discardableResult
34
34
internal mutating func _reverse(
35
35
subrange: Range < Index > , until limit: Index
36
36
) -> ( Index , Index ) {
37
- var f = subrange. lowerBound
38
- var l = subrange. upperBound
39
- while f != limit && l != limit {
40
- formIndex ( before: & l )
41
- swapAt ( f , l )
42
- formIndex ( after: & f )
37
+ var lower = subrange. lowerBound
38
+ var upper = subrange. upperBound
39
+ while lower != limit && upper != limit {
40
+ formIndex ( before: & upper )
41
+ swapAt ( lower , upper )
42
+ formIndex ( after: & lower )
43
43
}
44
- return ( f , l )
44
+ return ( lower , upper )
45
45
}
46
46
47
47
/// Reverses the elements within the given subrange.
You can’t perform that action at this time.
0 commit comments