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

@@ -346,7 +346,7 @@ extension UniqueArray where Element: ~Copyable {
@available(SwiftStdlib 5.0, *)
extension UniqueArray where Element: ~Copyable {
#if compiler(>=6.4) && UnstableContainersPreview
/// Replaces the specified range of elements by at most `maximumCount` items
/// Replaces the specified range of elements by at most `maxCount` items
/// generated by a producer.
///
/// This method has the effect of removing the specified range of elements
@@ -367,8 +367,8 @@ extension UniqueArray where Element: ~Copyable {
/// directly expressed by calling `removeSubrange`.
///
/// This operation inserts as many items as the producer can generate before
/// either reaching `maximumCount`, or the producer hitting its end, or
/// throwing an error. If the producer has more than `maximumCount` items left in
/// either reaching `maxCount`, or the producer hitting its end, or
/// throwing an error. If the producer has more than `maxCount` items left in
/// its underlying sequence, then extra items remain available after this
/// method returns.
///