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 {
2525 /// Output:
2626 /// [p o n m e f g h i j k l d c b a]
2727 /// ^ ^
28- /// f l
28+ /// lower upper
2929 ///
30- /// - Postcondition: For returned indices `(f, l )`:
31- /// `f == limit || l == limit`
30+ /// - Postcondition: For returned indices `(lower, upper )`:
31+ /// `lower == limit || upper == limit`
3232 @usableFromInline
3333 @discardableResult
3434 internal mutating func _reverse(
3535 subrange: Range < Index > , until limit: Index
3636 ) -> ( 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 )
4343 }
44- return ( f , l )
44+ return ( lower , upper )
4545 }
4646
4747 /// Reverses the elements within the given subrange.
You can’t perform that action at this time.
0 commit comments