Skip to content

Commit

Permalink
Follow stdlib's leading underscore rule (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
ejmarchant authored Aug 30, 2021
1 parent 837a273 commit 5762a3a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ extension OrderedDictionary.Elements.SubSequence: Sequence {

@inlinable
@inline(__always)
internal init(_ base: OrderedDictionary.Elements.SubSequence) {
self._base = base._base
self._end = base._bounds.upperBound
self._index = base._bounds.lowerBound
internal init(_base: OrderedDictionary.Elements.SubSequence) {
self._base = _base._base
self._end = _base._bounds.upperBound
self._index = _base._bounds.lowerBound
}

/// Advances to the next element and returns it, or `nil` if no next
Expand All @@ -118,7 +118,7 @@ extension OrderedDictionary.Elements.SubSequence: Sequence {
@inlinable
@inline(__always)
public func makeIterator() -> Iterator {
Iterator(self)
Iterator(_base: self)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ extension OrderedSet: RandomAccessCollection {
@inlinable
public subscript(bounds: Range<Int>) -> SubSequence {
_failEarlyRangeCheck(bounds, bounds: startIndex ..< endIndex)
return SubSequence(base: self, bounds: bounds)
return SubSequence(_base: self, bounds: bounds)
}

/// A Boolean value indicating whether the collection is empty.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ extension OrderedSet {

@inlinable
@inline(__always)
internal init(base: OrderedSet, bounds: Range<Int>) {
self._base = base
internal init(_base: OrderedSet, bounds: Range<Int>) {
self._base = _base
self._bounds = bounds
}
}
Expand Down Expand Up @@ -289,7 +289,7 @@ extension OrderedSet.SubSequence: RandomAccessCollection {
@inline(__always)
public subscript(bounds: Range<Int>) -> SubSequence {
_failEarlyRangeCheck(bounds, bounds: startIndex ..< endIndex)
return SubSequence(base: _base, bounds: bounds)
return SubSequence(_base: _base, bounds: bounds)
}

/// A Boolean value indicating whether the collection is empty.
Expand Down

0 comments on commit 5762a3a

Please sign in to comment.