Follow stdlib's leading underscore rule (#95)

This commit is contained in:
ejmarchant authored and Karoy Lorentey committed 2021-08-30 15:44:27 -07:00
1 parent 751ae1b08b
commit 4c22d00065
3 files changed
+9 -9

No files matched your search

@@ -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
@@ -118,7 +118,7 @@ extension OrderedDictionary.Elements.SubSequence: Sequence {
@inlinable
@inline(__always)
public func makeIterator() -> Iterator {
Iterator(self)
Iterator(_base: self)
}
}
@@ -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.
@@ -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
}
}
@@ -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.