maximumCount → maxCount

While we’re here, adjust `RigidSet.insert(maximumCount:initializingWith:)` and similar APIs to be consistent with RangeReplaceableContainer’s methods.
This commit is contained in:
Karoy Lorentey committed 2026-07-07 14:21:53 -07:00
1 parent 72c0dd258d
commit bb0dc189ef
64 files changed
+505 -275

No files matched your search

@@ -87,15 +87,15 @@ internal struct _ChunkedBitsBackwardIterator {
extension IteratorProtocol where Element == Bool {
mutating func _nextChunk(
maximumCount: UInt = _Word._capacity
maxCount: UInt = _Word._capacity
) -> (bits: _Word, count: UInt) {
assert(maximumCount <= _Word.capacity)
assert(maxCount <= _Word.capacity)
var bits = _Word.empty
var c: UInt = 0
while let v = next() {
if v { bits.insert(c) }
c += 1
if c == maximumCount { break }
if c == maxCount { break }
}
return (bits, c)
}