diff --git a/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Elements+SubSequence.swift b/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Elements+SubSequence.swift index 706f28a3..ee7ccc1e 100644 --- a/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Elements+SubSequence.swift +++ b/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Elements+SubSequence.swift @@ -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) } } diff --git a/Sources/OrderedCollections/OrderedSet/OrderedSet+RandomAccessCollection.swift b/Sources/OrderedCollections/OrderedSet/OrderedSet+RandomAccessCollection.swift index d1228031..7e5eed85 100644 --- a/Sources/OrderedCollections/OrderedSet/OrderedSet+RandomAccessCollection.swift +++ b/Sources/OrderedCollections/OrderedSet/OrderedSet+RandomAccessCollection.swift @@ -244,7 +244,7 @@ extension OrderedSet: RandomAccessCollection { @inlinable public subscript(bounds: Range) -> 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. diff --git a/Sources/OrderedCollections/OrderedSet/OrderedSet+SubSequence.swift b/Sources/OrderedCollections/OrderedSet/OrderedSet+SubSequence.swift index 5500cffc..706c8f99 100644 --- a/Sources/OrderedCollections/OrderedSet/OrderedSet+SubSequence.swift +++ b/Sources/OrderedCollections/OrderedSet/OrderedSet+SubSequence.swift @@ -26,8 +26,8 @@ extension OrderedSet { @inlinable @inline(__always) - internal init(base: OrderedSet, bounds: Range) { - self._base = base + internal init(_base: OrderedSet, bounds: Range) { + self._base = _base self._bounds = bounds } } @@ -289,7 +289,7 @@ extension OrderedSet.SubSequence: RandomAccessCollection { @inline(__always) public subscript(bounds: Range) -> 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.