mirror of
https://github.com/apple/swift-collections
synced 2026-11-28 05:04:21 +00:00
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:
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.
|
||||
///
|
||||
|
||||
Reference in new issue
Block a user