diff --git a/Sources/BasicContainers/RigidArray/RigidArray+Append.swift b/Sources/BasicContainers/RigidArray/RigidArray+Append.swift index 302ce36a..bda586e3 100644 --- a/Sources/BasicContainers/RigidArray/RigidArray+Append.swift +++ b/Sources/BasicContainers/RigidArray/RigidArray+Append.swift @@ -97,7 +97,7 @@ extension RigidArray where Element: ~Copyable { /// If the array does not have sufficient capacity to hold all items in the /// buffer, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: A fully initialized buffer whose contents to move into /// the array. /// @@ -120,7 +120,7 @@ extension RigidArray where Element: ~Copyable { /// If the array does not have sufficient capacity to hold all items in its /// storage, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: An input span whose contents need to be appended to this array. /// /// - Complexity: O(`items.count`) @@ -142,7 +142,7 @@ extension RigidArray where Element: ~Copyable { /// If the array does not have sufficient capacity to hold all items in its /// storage, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: An output span whose contents need to be appended to this array. /// /// - Complexity: O(`items.count`) @@ -164,7 +164,7 @@ extension RigidArray where Element: ~Copyable { /// If the target array does not have sufficient capacity to hold all items /// in the source array, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: An array whose items to move to the end of this array. /// /// - Complexity: O(`items.count`) @@ -188,7 +188,7 @@ extension RigidArray where Element: ~Copyable { /// If the target array does not have sufficient capacity to hold all items /// in the source array, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: A container whose contents to move into this array. /// /// - Complexity: O(`items.count`) @@ -210,7 +210,7 @@ extension RigidArray { /// If the array does not have sufficient capacity to hold all items in the /// buffer, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - newElements: A fully initialized buffer whose contents to copy into /// the array. /// @@ -233,7 +233,7 @@ extension RigidArray { /// If the array does not have sufficient capacity to hold all items in the /// buffer, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - newElements: A fully initialized buffer whose contents to copy into /// the array. /// @@ -250,7 +250,7 @@ extension RigidArray { /// If the array does not have sufficient capacity to hold all items in the /// span, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - newElements: A span whose contents to copy into the array. /// /// - Complexity: O(`newElements.count`) @@ -289,7 +289,7 @@ extension RigidArray { /// If the array does not have sufficient capacity to hold all items in the /// source sequence, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - newElements: A container whose contents to copy into the array. /// /// - Complexity: O(`newElements.count`) @@ -309,7 +309,7 @@ extension RigidArray { /// If the array does not have sufficient capacity to hold all items in the /// sequence, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - newElements: The new elements to copy into the array. /// /// - Complexity: O(*m*), where *m* is the length of `newElements`. @@ -331,7 +331,7 @@ extension RigidArray { /// If the array does not have sufficient capacity to hold all items in the /// source sequence, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - newElements: The new elements to copy into the array. /// /// - Complexity: O(*m*), where *m* is the length of `newElements`. diff --git a/Sources/BasicContainers/RigidArray/RigidArray+Deprecated.swift b/Sources/BasicContainers/RigidArray/RigidArray+Deprecated.swift index 459d1341..8f84a257 100644 --- a/Sources/BasicContainers/RigidArray/RigidArray+Deprecated.swift +++ b/Sources/BasicContainers/RigidArray/RigidArray+Deprecated.swift @@ -96,7 +96,7 @@ extension RigidArray where Element: ~Copyable { /// removes the elements in the given subrange without any replacement. /// This case is more directly expressed by `removeSubrange(subrange)`. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the array to replace. The bounds of /// the range must be valid indices in the array. /// - newCount: the number of items to replace the old subrange. @@ -141,7 +141,7 @@ extension RigidArray where Element: ~Copyable { /// without replacement. Calling the `removeSubrange(_:)` method instead is /// preferred in this case. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the array to replace. The bounds of /// the range must be valid indices in the array. /// - newElements: A fully initialized buffer whose contents to move into @@ -177,7 +177,7 @@ extension RigidArray where Element: ~Copyable { /// without replacement. Calling the `removeSubrange(_:)` method instead is /// preferred in this case. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the array to replace. The bounds of /// the range must be valid indices in the array. /// - items: An output span whose contents are to be moved into the array. @@ -214,7 +214,7 @@ extension RigidArray where Element: ~Copyable { /// without replacement. Calling the `removeSubrange(_:)` method instead is /// preferred in this case. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the array to replace. The bounds of /// the range must be valid indices in the array. /// - newElements: An array whose contents to move into `self`. diff --git a/Sources/BasicContainers/RigidArray/RigidArray+Insertions.swift b/Sources/BasicContainers/RigidArray/RigidArray+Insertions.swift index d924fee9..722dc2b9 100644 --- a/Sources/BasicContainers/RigidArray/RigidArray+Insertions.swift +++ b/Sources/BasicContainers/RigidArray/RigidArray+Insertions.swift @@ -129,7 +129,7 @@ extension RigidArray where Element: ~Copyable { /// If the capacity of the array isn't sufficient to accommodate the new /// elements, then this method triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: A fully initialized buffer whose contents to move into /// the array. /// - index: The position at which to insert the new items. @@ -156,7 +156,7 @@ extension RigidArray where Element: ~Copyable { /// If the capacity of the array isn't sufficient to accommodate the new /// elements, then this method triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: An input span whose contents to move into /// the array. /// - index: The position at which to insert the new items. @@ -185,7 +185,7 @@ extension RigidArray where Element: ~Copyable { /// If the capacity of the array isn't sufficient to accommodate the new /// elements, then this method triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: An output span whose contents to move into /// the array. /// - index: The position at which to insert the new items. @@ -215,7 +215,7 @@ extension RigidArray where Element: ~Copyable { /// If the capacity of the array isn't sufficient to accommodate the new /// elements, then this method triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: An array whose contents to move into `self`. /// - index: The position at which to insert the new items. /// `index` must be a valid index in the array. @@ -246,7 +246,7 @@ extension RigidArray where Element: ~Copyable { /// If the capacity of the array isn't sufficient to accommodate the new /// elements, then this method triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: The array whose contents to move into `self`. /// - index: The position at which to insert the new items. /// `index` must be a valid index in the array. @@ -279,7 +279,7 @@ extension RigidArray { /// If the capacity of the array isn't sufficient to accommodate the new /// elements, then this method triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - newElements: The new elements to insert into the array. The buffer /// must be fully initialized. /// - index: The position at which to insert the new elements. It must be @@ -309,7 +309,7 @@ extension RigidArray { /// If the capacity of the array isn't sufficient to accommodate the new /// elements, then this method triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - newElements: The new elements to insert into the array. The buffer /// must be fully initialized. /// - index: The position at which to insert the new elements. It must be @@ -337,7 +337,7 @@ extension RigidArray { /// If the capacity of the array isn't sufficient to accommodate the new /// elements, then this method triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - newElements: The new elements to insert into the array. /// - index: The position at which to insert the new elements. It must be /// a valid index of the array. @@ -415,7 +415,7 @@ extension RigidArray { /// If the capacity of the array isn't sufficient to accommodate the new /// elements, then this method triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - newElements: The new elements to insert into the array. /// - index: The position at which to insert the new elements. It must be /// a valid index of the array. @@ -446,7 +446,7 @@ extension RigidArray { /// If the capacity of the array isn't sufficient to accommodate the new /// elements, then this method triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - newElements: The new elements to insert into the array. /// - index: The position at which to insert the new elements. It must be /// a valid index of the array. @@ -475,7 +475,7 @@ extension RigidArray { /// If the capacity of the array isn't sufficient to accommodate the new /// elements, then this method triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - newElements: The new elements to insert into the array. /// - index: The position at which to insert the new elements. It must be /// a valid index of the array. diff --git a/Sources/BasicContainers/RigidArray/RigidArray+Replacements.swift b/Sources/BasicContainers/RigidArray/RigidArray+Replacements.swift index 511b0aa5..7b833944 100644 --- a/Sources/BasicContainers/RigidArray/RigidArray+Replacements.swift +++ b/Sources/BasicContainers/RigidArray/RigidArray+Replacements.swift @@ -48,7 +48,7 @@ extension RigidArray where Element: ~Copyable { /// the adjusted count. This adds some overhead compared to adding exactly as /// many items as promised. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the array to replace. The bounds of /// the range must be valid indices in the array. /// - newItemCount: the maximum number of items to replace the old subrange. @@ -138,7 +138,7 @@ extension RigidArray where Element: ~Copyable { /// the adjusted count. This adds some overhead compared to adding exactly as /// many items as promised. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the deque to replace. The bounds of /// the range must be valid indices in the deque. /// - newItemCount: the maximum number of items to replace the old subrange. @@ -229,7 +229,7 @@ extension RigidArray where Element: ~Copyable { /// without replacement. This case is more directly expressed by calling /// `removeSubrange`. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the array to replace. The bounds of /// the range must be valid indices in the array. /// - newElements: A fully initialized buffer whose contents to move into @@ -269,7 +269,7 @@ extension RigidArray where Element: ~Copyable { /// without replacement. This case is more directly expressed by calling /// `removeSubrange`. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the array to replace. The bounds of /// the range must be valid indices in the array. /// - items: An input span whose contents are to be moved into the array. @@ -308,7 +308,7 @@ extension RigidArray where Element: ~Copyable { /// without replacement. This case is more directly expressed by calling /// `removeSubrange`. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the array to replace. The bounds of /// the range must be valid indices in the array. /// - items: An output span whose contents are to be moved into the array. @@ -348,7 +348,7 @@ extension RigidArray where Element: ~Copyable { /// without replacement. This case is more directly expressed by calling /// `removeSubrange`. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the array to replace. The bounds of /// the range must be valid indices in the array. /// - newElements: An array whose contents to move into `self`. @@ -391,7 +391,7 @@ extension RigidArray where Element: ~Copyable { /// without replacement. This case is more directly expressed by calling /// `removeSubrange`. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the array to replace. The bounds of /// the range must be valid indices in the array. /// - newElements: An array whose contents to move into `self`. diff --git a/Sources/BasicContainers/UniqueArray/UniqueArray+Append.swift b/Sources/BasicContainers/UniqueArray/UniqueArray+Append.swift index 1cc82d2c..55275d1c 100644 --- a/Sources/BasicContainers/UniqueArray/UniqueArray+Append.swift +++ b/Sources/BasicContainers/UniqueArray/UniqueArray+Append.swift @@ -77,7 +77,7 @@ extension UniqueArray where Element: ~Copyable { /// buffer, then this reallocates the array's storage to grow its capacity, /// using a geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: A fully initialized buffer whose contents to move into /// the array. /// @@ -98,7 +98,7 @@ extension UniqueArray where Element: ~Copyable { /// then this reallocates the array's storage to grow its capacity, /// using a geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: An input span whose contents need to be appended to this array. /// /// - Complexity: O(`items.count`) @@ -118,7 +118,7 @@ extension UniqueArray where Element: ~Copyable { /// then this reallocates the array's storage to grow its capacity, /// using a geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: An output span whose contents need to be appended to this array. /// /// - Complexity: O(`items.count`) @@ -138,7 +138,7 @@ extension UniqueArray where Element: ~Copyable { /// in the source array, then this automatically grows the target array's /// capacity, using a geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: An array whose items to move to the end of this array. /// /// - Complexity: O(`items.count`) when amortized over many invocations on @@ -163,7 +163,7 @@ extension UniqueArray where Element: ~Copyable { /// in the source array, then this automatically grows the target array's /// capacity, using a geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: An array whose items to move to the end of this array. /// /// - Complexity: O(`items.count`) @@ -186,7 +186,7 @@ extension UniqueArray { /// in the source buffer, then this automatically grows the array's /// capacity, using a geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - newElements: A fully initialized buffer whose contents to copy into /// the array. /// @@ -206,7 +206,7 @@ extension UniqueArray { /// then this reallocates the array's storage to extend its capacity, using /// a geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - newElements: A fully initialized buffer whose contents to copy into /// the array. /// @@ -225,7 +225,7 @@ extension UniqueArray { /// then this reallocates the array's storage to extend its capacity, using a /// geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - newElements: A span whose contents to copy into the array. /// /// - Complexity: O(`newElements.count`) when amortized over many @@ -264,7 +264,7 @@ extension UniqueArray { /// estimate of its count, then the array's storage may need to be resized /// more than once. /// - /// - Parameters + /// - Parameters: /// - newElements: A container whose contents to copy into the array. /// /// - Complexity: O(`newElements.count`), when amortized over many invocations @@ -289,7 +289,7 @@ extension UniqueArray { /// estimate of its count, then the array's storage may need to be resized /// more than once. /// - /// - Parameters + /// - Parameters: /// - newElements: The new elements to copy into the array. /// /// - Complexity: O(*m*), where *m* is the length of `newElements`, when @@ -318,7 +318,7 @@ extension UniqueArray { /// then this reallocates the array's storage to extend its capacity, using a /// geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - newElements: A container whose contents to copy into the array. /// /// - Complexity: O(`newElements.count`), when amortized over many invocations diff --git a/Sources/BasicContainers/UniqueArray/UniqueArray+Deprecated.swift b/Sources/BasicContainers/UniqueArray/UniqueArray+Deprecated.swift index bfda4f1c..552da64d 100644 --- a/Sources/BasicContainers/UniqueArray/UniqueArray+Deprecated.swift +++ b/Sources/BasicContainers/UniqueArray/UniqueArray+Deprecated.swift @@ -20,7 +20,7 @@ extension UniqueArray where Element: ~Copyable { /// number of new elements, then this reallocates the array's storage to /// grow its capacity, using a geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - count: The number of items to append to the array. /// - initializer: A callback that gets called exactly once to directly /// populate newly reserved storage within the array. The function @@ -99,7 +99,7 @@ extension UniqueArray where Element: ~Copyable { /// removes the elements in the given subrange without any replacement. /// Calling `removeSubrange(subrange)` is preferred in this case. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the array to replace. The bounds of /// the range must be valid indices in the array. /// - newCount: the number of items to replace the old subrange. @@ -145,7 +145,7 @@ extension UniqueArray where Element: ~Copyable { /// without replacement. Calling the `removeSubrange(_:)` method instead is /// preferred in this case. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the array to replace. The bounds of /// the range must be valid indices in the array. /// - newElements: A fully initialized buffer whose contents to move into @@ -182,7 +182,7 @@ extension UniqueArray where Element: ~Copyable { /// without replacement. Calling the `removeSubrange(_:)` method instead is /// preferred in this case. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the array to replace. The bounds of /// the range must be valid indices in the array. /// - items: An output span whose contents are to be moved into the array. @@ -220,7 +220,7 @@ extension UniqueArray where Element: ~Copyable { /// without replacement. Calling the `removeSubrange(_:)` method instead is /// preferred in this case. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the array to replace. The bounds of /// the range must be valid indices in the array. /// - newElements: An array whose contents to move into `self`. @@ -256,7 +256,7 @@ extension UniqueArray where Element: ~Copyable { /// without replacement. Calling the `removeSubrange(_:)` method instead is /// preferred in this case. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the array to replace. The bounds of /// the range must be valid indices in the array. /// - newElements: An array whose contents to move into `self`. diff --git a/Sources/BasicContainers/UniqueArray/UniqueArray+Insertions.swift b/Sources/BasicContainers/UniqueArray/UniqueArray+Insertions.swift index 0da21c28..55e936b2 100644 --- a/Sources/BasicContainers/UniqueArray/UniqueArray+Insertions.swift +++ b/Sources/BasicContainers/UniqueArray/UniqueArray+Insertions.swift @@ -104,7 +104,7 @@ extension UniqueArray where Element: ~Copyable { /// then this reallocates storage to extend its capacity, using a geometric /// growth rate. /// - /// - Parameters + /// - Parameters: /// - items: A fully initialized buffer whose contents to move into /// the array. /// @@ -130,7 +130,7 @@ extension UniqueArray where Element: ~Copyable { /// then this reallocates storage to extend its capacity, using a geometric /// growth rate. /// - /// - Parameters + /// - Parameters: /// - items: An input span whose contents to move into /// the array. /// - index: The position at which to insert the new items. @@ -157,7 +157,7 @@ extension UniqueArray where Element: ~Copyable { /// then this reallocates storage to extend its capacity, using a geometric /// growth rate. /// - /// - Parameters + /// - Parameters: /// - items: An output span whose contents to move into /// the array. /// - index: The position at which to insert the new items. @@ -182,7 +182,7 @@ extension UniqueArray where Element: ~Copyable { /// then this reallocates storage to extend its capacity, using a geometric /// growth rate. /// - /// - Parameters + /// - Parameters: /// - items: An array whose contents to move into `self`. /// /// - Complexity: O(`self.count` + `items.count`) @@ -207,7 +207,7 @@ extension UniqueArray where Element: ~Copyable { /// then this reallocates storage to extend its capacity, using a geometric /// growth rate. /// - /// - Parameters + /// - Parameters: /// - items: A fully initialized buffer whose contents to move into /// the array. /// @@ -241,7 +241,7 @@ extension UniqueArray { /// then this reallocates the array's storage to extend its capacity, using a /// geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - newElements: The new elements to insert into the array. The buffer /// must be fully initialized. /// - index: The position at which to insert the new elements. It must be @@ -271,7 +271,7 @@ extension UniqueArray { /// then this reallocates the array's storage to extend its capacity, using a /// geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - newElements: The new elements to insert into the array. The buffer /// must be fully initialized. /// - index: The position at which to insert the new elements. It must be @@ -299,7 +299,7 @@ extension UniqueArray { /// then this reallocates the array's storage to extend its capacity, using a /// geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - newElements: The new elements to insert into the array. /// - index: The position at which to insert the new elements. It must be /// a valid index of the array. @@ -329,7 +329,7 @@ extension UniqueArray { /// then this reallocates the array's storage to extend its capacity, using a /// geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - newElements: The new elements to insert into the array. /// - index: The position at which to insert the new elements. It must be /// a valid index of the array. @@ -364,7 +364,7 @@ extension UniqueArray { /// then this reallocates the array's storage to extend its capacity, using a /// geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - newElements: The new elements to insert into the array. /// - index: The position at which to insert the new elements. It must be /// a valid index of the array. @@ -396,7 +396,7 @@ extension UniqueArray { /// then this reallocates the array's storage to extend its capacity, using a /// geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - newElements: The new elements to insert into the array. /// - index: The position at which to insert the new elements. It must be /// a valid index of the array. diff --git a/Sources/BasicContainers/UniqueArray/UniqueArray+Replacements.swift b/Sources/BasicContainers/UniqueArray/UniqueArray+Replacements.swift index 56be6e92..5d5c977e 100644 --- a/Sources/BasicContainers/UniqueArray/UniqueArray+Replacements.swift +++ b/Sources/BasicContainers/UniqueArray/UniqueArray+Replacements.swift @@ -49,7 +49,7 @@ extension UniqueArray where Element: ~Copyable { /// the adjusted count. This adds some overhead compared to adding exactly as /// many items as promised. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the array to replace. The bounds of /// the range must be valid indices in the array. /// - newItemCount: the maximum number of items to replace the old subrange. @@ -116,7 +116,7 @@ extension UniqueArray where Element: ~Copyable { /// the adjusted count. This adds some overhead compared to adding exactly as /// many items as promised. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the deque to replace. The bounds of /// the range must be valid indices in the deque. /// - consumer: A callback that gets called at most once to consume @@ -174,7 +174,7 @@ extension UniqueArray where Element: ~Copyable { /// without replacement. Calling the `removeSubrange(_:)` method instead is /// preferred in this case. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the array to replace. The bounds of /// the range must be valid indices in the array. /// - newElements: A fully initialized buffer whose contents to move into @@ -213,7 +213,7 @@ extension UniqueArray where Element: ~Copyable { /// without replacement. Calling the `removeSubrange(_:)` method instead is /// preferred in this case. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the array to replace. The bounds of /// the range must be valid indices in the array. /// - items: An input span whose contents are to be moved into the array. @@ -251,7 +251,7 @@ extension UniqueArray where Element: ~Copyable { /// without replacement. Calling the `removeSubrange(_:)` method instead is /// preferred in this case. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the array to replace. The bounds of /// the range must be valid indices in the array. /// - items: An output span whose contents are to be moved into the array. @@ -290,7 +290,7 @@ extension UniqueArray where Element: ~Copyable { /// without replacement. Calling the `removeSubrange(_:)` method instead is /// preferred in this case. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the array to replace. The bounds of /// the range must be valid indices in the array. /// - newElements: An array whose contents to move into `self`. @@ -330,7 +330,7 @@ extension UniqueArray where Element: ~Copyable { /// without replacement. Calling the `removeSubrange(_:)` method instead is /// preferred in this case. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the array to replace. The bounds of /// the range must be valid indices in the array. /// - newElements: An array whose contents to move into `self`. diff --git a/Sources/DequeModule/RigidDeque/RigidDeque+Append.swift b/Sources/DequeModule/RigidDeque/RigidDeque+Append.swift index 8a9c1392..a79bd23e 100644 --- a/Sources/DequeModule/RigidDeque/RigidDeque+Append.swift +++ b/Sources/DequeModule/RigidDeque/RigidDeque+Append.swift @@ -91,7 +91,7 @@ extension RigidDeque where Element: ~Copyable { /// } /// // `buffer` now contains [999, 0, 1, 2, 3] /// - /// - Parameters + /// - Parameters: /// - maximumCount: The maximum number of items to append to the deque. /// - body: A callback that gets called at most twice to directly /// populate newly reserved storage within the deque. @@ -119,7 +119,7 @@ extension RigidDeque where Element: ~Copyable { /// If the deque does not have sufficient capacity to hold all items in the /// buffer, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: A fully initialized buffer whose contents to move into /// the deque. /// @@ -139,7 +139,7 @@ extension RigidDeque where Element: ~Copyable { /// If the deque does not have sufficient capacity to hold all items in its /// storage, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: An input span whose contents need to be appended to this deque. /// /// - Complexity: O(`items.count`) @@ -161,7 +161,7 @@ extension RigidDeque where Element: ~Copyable { /// If the deque does not have sufficient capacity to hold all items in its /// storage, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: An output span whose contents need to be appended to this deque. /// /// - Complexity: O(`items.count`) @@ -189,7 +189,7 @@ extension RigidDeque where Element: ~Copyable { /// producer; if the producer has more, then they remain available after this /// method returns. /// - /// - Parameters + /// - Parameters: /// - maximumCount: The maximum number of items to append to the deque, or /// nil to use all available capacity. /// - producer: A producer that generates the items to append. @@ -219,7 +219,7 @@ extension RigidDeque /*where Element: Copyable*/ { /// If the deque does not have sufficient capacity to hold all items in the /// buffer, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: A fully initialized buffer whose contents to copy into /// the deque. /// @@ -240,7 +240,7 @@ extension RigidDeque /*where Element: Copyable*/ { /// If the deque does not have sufficient capacity to hold all items in the /// buffer, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: A fully initialized buffer whose contents to copy into /// the deque. /// @@ -257,7 +257,7 @@ extension RigidDeque /*where Element: Copyable*/ { /// If the deque does not have sufficient capacity to hold all items in the /// span, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: A span whose contents to copy into the deque. /// /// - Complexity: O(`items.count`) @@ -287,7 +287,7 @@ extension RigidDeque /*where Element: Copyable*/ { /// If the deque does not have sufficient capacity to hold all items in the /// sequence, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - newElements: The new elements to copy into the deque. /// /// - Complexity: O(*m*), where *m* is the length of `newElements`. @@ -305,7 +305,7 @@ extension RigidDeque /*where Element: Copyable*/ { /// If the deque does not have sufficient capacity to hold all items in the /// sequence, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - newElements: The new elements to copy into the deque. /// /// - Complexity: O(*m*), where *m* is the length of `newElements`. @@ -327,7 +327,7 @@ extension RigidDeque /*where Element: Copyable*/ { /// If the deque does not have sufficient capacity to hold all items in the /// sequence, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to copy into the deque. /// /// - Complexity: O(*m*), where *m* is the length of `items`. diff --git a/Sources/DequeModule/RigidDeque/RigidDeque+Initializers.swift b/Sources/DequeModule/RigidDeque/RigidDeque+Initializers.swift index c6e34f97..ec8d79c1 100644 --- a/Sources/DequeModule/RigidDeque/RigidDeque+Initializers.swift +++ b/Sources/DequeModule/RigidDeque/RigidDeque+Initializers.swift @@ -78,7 +78,7 @@ extension RigidDeque where Element: ~Copyable { /// previously produced items are discarded and the initializer rethrows the /// error. /// - /// - Parameters + /// - Parameters: /// - producer: A producer that generates the items to append to the new /// deque. /// diff --git a/Sources/DequeModule/RigidDeque/RigidDeque+Insertions.swift b/Sources/DequeModule/RigidDeque/RigidDeque+Insertions.swift index aa7f72a2..238e974f 100644 --- a/Sources/DequeModule/RigidDeque/RigidDeque+Insertions.swift +++ b/Sources/DequeModule/RigidDeque/RigidDeque+Insertions.swift @@ -119,7 +119,7 @@ extension RigidDeque where Element: ~Copyable { /// If the capacity of the deque isn't sufficient to accommodate the new /// elements, then this method triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: A fully initialized buffer whose contents to move into /// the deque. /// - index: The position at which to insert the new items. @@ -154,7 +154,7 @@ extension RigidDeque where Element: ~Copyable { /// If the capacity of the deque isn't sufficient to accommodate the new /// elements, then this method triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: An input span whose contents to move into /// the deque. /// - index: The position at which to insert the new items. @@ -184,7 +184,7 @@ extension RigidDeque where Element: ~Copyable { /// If the capacity of the deque isn't sufficient to accommodate the new /// elements, then this method triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: An output span whose contents to move into /// the deque. /// - index: The position at which to insert the new items. @@ -268,7 +268,7 @@ extension RigidDeque /* where Element: Copyable */ { /// If the capacity of the deque isn't sufficient to accommodate the new /// elements, then this method triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to insert into the deque. The buffer /// must be fully initialized. /// - index: The position at which to insert the new elements. It must be @@ -306,7 +306,7 @@ extension RigidDeque /* where Element: Copyable */ { /// If the capacity of the deque isn't sufficient to accommodate the new /// elements, then this method triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to insert into the deque. The buffer /// must be fully initialized. /// - index: The position at which to insert the new elements. It must be @@ -334,7 +334,7 @@ extension RigidDeque /* where Element: Copyable */ { /// If the capacity of the deque isn't sufficient to accommodate the new /// elements, then this method triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to insert into the deque. /// - index: The position at which to insert the new elements. It must be /// a valid index of the deque. @@ -406,7 +406,7 @@ extension RigidDeque /* where Element: Copyable */ { /// If the capacity of the deque isn't sufficient to accommodate the new /// elements, then this method triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - newElements: The new elements to insert into the deque. /// - index: The position at which to insert the new elements. It must be /// a valid index of the deque. @@ -438,7 +438,7 @@ extension RigidDeque /* where Element: Copyable */ { /// If the capacity of the deque isn't sufficient to accommodate the new /// elements, then this method triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to insert into the deque. /// - index: The position at which to insert the new elements. It must be /// a valid index of the deque. @@ -468,7 +468,7 @@ extension RigidDeque /* where Element: Copyable */ { /// If the capacity of the deque isn't sufficient to accommodate the new /// elements, then this method triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to insert into the deque. /// - index: The position at which to insert the new elements. It must be /// a valid index of the deque. diff --git a/Sources/DequeModule/RigidDeque/RigidDeque+Prepend.swift b/Sources/DequeModule/RigidDeque/RigidDeque+Prepend.swift index 402a51f5..5f26171d 100644 --- a/Sources/DequeModule/RigidDeque/RigidDeque+Prepend.swift +++ b/Sources/DequeModule/RigidDeque/RigidDeque+Prepend.swift @@ -96,7 +96,7 @@ extension RigidDeque where Element: ~Copyable { /// } /// // `buffer` now contains [0, 1, 2, 3, 999] /// - /// - Parameters + /// - Parameters: /// - newItemCount: The maximum number of items to prepend to the deque. /// - body: A callback that gets called at most twice to directly /// populate newly reserved storage within the deque. @@ -122,7 +122,7 @@ extension RigidDeque where Element: ~Copyable { /// If the deque does not have sufficient capacity to hold all items in the /// buffer, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: A fully initialized buffer whose contents to move into /// the deque. /// @@ -143,7 +143,7 @@ extension RigidDeque where Element: ~Copyable { /// If the deque does not have sufficient capacity to hold all items in its /// storage, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: An input span whose contents need to be prepended to this deque. /// /// - Complexity: O(`items.count`) @@ -165,7 +165,7 @@ extension RigidDeque where Element: ~Copyable { /// If the deque does not have sufficient capacity to hold all items in its /// storage, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: An output span whose contents need to be prepended to this deque. /// /// - Complexity: O(`items.count`) @@ -198,7 +198,7 @@ extension RigidDeque where Element: ~Copyable { /// the adjusted count. This adds some overhead compared to adding exactly as /// many items as promised. /// - /// - Parameters + /// - Parameters: /// - maximumCount: The maximum number of items to prepend to the deque, or /// nil to use all available capacity. @@ -230,7 +230,7 @@ extension RigidDeque /*where Element: Copyable*/ { /// If the deque does not have sufficient capacity to hold all items in the /// buffer, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: A fully initialized buffer whose contents to copy into /// the deque. /// @@ -252,7 +252,7 @@ extension RigidDeque /*where Element: Copyable*/ { /// If the deque does not have sufficient capacity to hold all items in the /// buffer, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: A fully initialized buffer whose contents to copy into /// the deque. /// @@ -270,7 +270,7 @@ extension RigidDeque /*where Element: Copyable*/ { /// If the deque does not have sufficient capacity to hold all items in the /// span, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: A span whose contents to copy into the deque. /// /// - Complexity: O(`items.count`) @@ -323,7 +323,7 @@ extension RigidDeque /*where Element: Copyable*/ { /// operation works by first appending the items, then finalizing the /// prepend by rotating them in place as a postprocessing step. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to copy into the deque. /// /// - Complexity: O(*m*), where *m* is the length of `items`. @@ -340,7 +340,7 @@ extension RigidDeque /*where Element: Copyable*/ { /// If the deque does not have sufficient capacity to hold all items in the /// container, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to copy into the deque. /// /// - Complexity: O(`items.count`) @@ -427,7 +427,7 @@ extension RigidDeque /*where Element: Copyable*/ { /// If the deque does not have sufficient capacity to hold all items in the /// sequence, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to copy into the deque. /// /// - Complexity: O(*m*), where *m* is the length of `items`. @@ -443,7 +443,7 @@ extension RigidDeque /*where Element: Copyable*/ { /// If the deque does not have sufficient capacity to hold all items in the /// sequence, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to copy into the deque. /// /// - Complexity: O(*m*), where *m* is the length of `items`. @@ -459,7 +459,7 @@ extension RigidDeque /*where Element: Copyable*/ { /// If the deque does not have sufficient capacity to hold all items in the /// sequence, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to copy into the deque. /// /// - Complexity: O(*m*), where *m* is the length of `items`. @@ -475,7 +475,7 @@ extension RigidDeque /*where Element: Copyable*/ { /// If the deque does not have sufficient capacity to hold all items in the /// sequence, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to copy into the deque. /// /// - Complexity: O(*m*), where *m* is the length of `items`. diff --git a/Sources/DequeModule/RigidDeque/RigidDeque+Replacements.swift b/Sources/DequeModule/RigidDeque/RigidDeque+Replacements.swift index aee4d20c..8c6a1df5 100644 --- a/Sources/DequeModule/RigidDeque/RigidDeque+Replacements.swift +++ b/Sources/DequeModule/RigidDeque/RigidDeque+Replacements.swift @@ -48,7 +48,7 @@ extension RigidDeque where Element: ~Copyable { /// the adjusted count. This adds some overhead compared to adding exactly as /// many items as promised. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the deque to replace. The bounds of /// the range must be valid indices in the deque. /// - newItemCount: the maximum number of items to replace the old subrange. @@ -121,7 +121,7 @@ extension RigidDeque where Element: ~Copyable { /// the adjusted count. This adds some overhead compared to adding exactly as /// many items as promised. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the deque to replace. The bounds of /// the range must be valid indices in the deque. /// - newItemCount: the maximum number of items to replace the old subrange. @@ -180,7 +180,7 @@ extension RigidDeque where Element: ~Copyable { /// without replacement. This case is more directly expressed by calling /// `removeSubrange`. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the deque to replace. The bounds of /// the range must be valid indices in the deque. /// - items: A fully initialized buffer whose contents to move into @@ -224,7 +224,7 @@ extension RigidDeque where Element: ~Copyable { /// without replacement. This case is more directly expressed by calling /// `removeSubrange`. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the deque to replace. The bounds of /// the range must be valid indices in the deque. /// - items: An input span whose contents are to be moved into the deque. @@ -263,7 +263,7 @@ extension RigidDeque where Element: ~Copyable { /// without replacement. This case is more directly expressed by calling /// `removeSubrange`. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the array to replace. The bounds of /// the range must be valid indices in the deque. /// - items: An output span whose contents are to be moved into the deque. @@ -312,7 +312,7 @@ extension RigidDeque where Element: ~Copyable { /// items to their correct positions given the adjusted count. This adds some /// overhead compared to adding exactly as many items as promised. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the deque to replace. The bounds of /// the range must be valid indices in the deque. /// - newItemCount: The maximum number of items to insert into the deque. diff --git a/Sources/DequeModule/UniqueDeque/UniqueDeque+Append.swift b/Sources/DequeModule/UniqueDeque/UniqueDeque+Append.swift index b00f8f01..b9cc56a2 100644 --- a/Sources/DequeModule/UniqueDeque/UniqueDeque+Append.swift +++ b/Sources/DequeModule/UniqueDeque/UniqueDeque+Append.swift @@ -74,7 +74,7 @@ extension UniqueDeque where Element: ~Copyable { /// } /// // `buffer` now contains [999, 0, 1, 2, 3] /// - /// - Parameters + /// - Parameters: /// - maximumCount: The maximum number of items to append to the deque. /// - body: A callback that gets called at most twice to directly /// populate newly reserved storage within the deque. @@ -104,7 +104,7 @@ extension UniqueDeque where Element: ~Copyable { /// elements, then this method reallocates the deque's storage to grow it, /// using a geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: A fully initialized buffer whose contents to move into /// the deque. /// @@ -126,7 +126,7 @@ extension UniqueDeque where Element: ~Copyable { /// elements, then this method reallocates the deque's storage to grow it, /// using a geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: An input span whose contents need to be appended to this deque. /// /// - Complexity: O(`items.count`) when amortized over many similar @@ -150,7 +150,7 @@ extension UniqueDeque where Element: ~Copyable { /// elements, then this method reallocates the deque's storage to grow it, /// using a geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: An output span whose contents need to be appended to this deque. /// /// - Complexity: O(`items.count`) when amortized over many similar @@ -181,7 +181,7 @@ extension UniqueDeque where Element: ~Copyable { /// producer; if the producer has more, then they remain available after this /// method returns. /// - /// - Parameters + /// - Parameters: /// - maximumCount: The maximum number of items to append to the deque, or /// nil to append every item the producer generates. /// - producer: A producer that generates the items to append. @@ -231,7 +231,7 @@ extension UniqueDeque /*where Element: Copyable*/ { /// number of new elements, then this method reallocates the deque's storage /// to grow it, using a geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: A fully initialized buffer whose contents to copy into /// the deque. /// @@ -251,7 +251,7 @@ extension UniqueDeque /*where Element: Copyable*/ { /// number of new elements, then this method reallocates the deque's storage /// to grow it, using a geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: A fully initialized buffer whose contents to copy into /// the deque. /// @@ -270,7 +270,7 @@ extension UniqueDeque /*where Element: Copyable*/ { /// number of new elements, then this method reallocates the deque's storage /// to grow it, using a geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: A span whose contents to copy into the deque. /// /// - Complexity: O(`items.count`) when amortized over many similar @@ -301,7 +301,7 @@ extension UniqueDeque /*where Element: Copyable*/ { /// elements, then this method reallocates the deque's storage to grow it, /// using a geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to copy into the deque. /// /// - Complexity: O(*m*), where *m* is the length of `items`, when amortized @@ -322,7 +322,7 @@ extension UniqueDeque /*where Element: Copyable*/ { /// estimate of its count, then the deque's storage may need to be resized /// more than once. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to copy into the deque. /// /// - Complexity: O(*m*), where *m* is the length of `items`, when @@ -351,7 +351,7 @@ extension UniqueDeque /*where Element: Copyable*/ { /// elements, then this method reallocates the deque's storage to grow it, /// using a geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to copy into the deque. /// /// - Complexity: O(*m*), where *m* is the length of `items`, when diff --git a/Sources/DequeModule/UniqueDeque/UniqueDeque+Initializers.swift b/Sources/DequeModule/UniqueDeque/UniqueDeque+Initializers.swift index 273c25b0..3d7d50bf 100644 --- a/Sources/DequeModule/UniqueDeque/UniqueDeque+Initializers.swift +++ b/Sources/DequeModule/UniqueDeque/UniqueDeque+Initializers.swift @@ -71,7 +71,7 @@ extension UniqueDeque where Element: ~Copyable { /// Creates a new unique deque of the specified capacity, populating it with /// all items generated by a given producer. /// - /// - Parameters + /// - Parameters: /// - producer: A producer that generates the items to append to the new /// deque. /// diff --git a/Sources/DequeModule/UniqueDeque/UniqueDeque+Insertions.swift b/Sources/DequeModule/UniqueDeque/UniqueDeque+Insertions.swift index bfbc626f..bdb014e7 100644 --- a/Sources/DequeModule/UniqueDeque/UniqueDeque+Insertions.swift +++ b/Sources/DequeModule/UniqueDeque/UniqueDeque+Insertions.swift @@ -124,7 +124,7 @@ extension UniqueDeque where Element: ~Copyable { /// then this reallocates the deque's storage to grow its capacity, using a /// geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: A fully initialized buffer whose contents to move into /// the deque. /// - index: The position at which to insert the new items. @@ -161,7 +161,7 @@ extension UniqueDeque where Element: ~Copyable { /// then this reallocates the deque's storage to grow its capacity, using a /// geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: An input span whose contents to move into /// the deque. /// - index: The position at which to insert the new items. @@ -193,7 +193,7 @@ extension UniqueDeque where Element: ~Copyable { /// then this reallocates the deque's storage to grow its capacity, using a /// geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: An output span whose contents to move into /// the deque. /// - index: The position at which to insert the new items. @@ -281,7 +281,7 @@ extension UniqueDeque /* where Element: Copyable */ { /// then this reallocates the deque's storage to grow its capacity, using a /// geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to insert into the deque. The buffer /// must be fully initialized. /// - index: The position at which to insert the new elements. It must be @@ -321,7 +321,7 @@ extension UniqueDeque /* where Element: Copyable */ { /// then this reallocates the deque's storage to grow its capacity, using a /// geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to insert into the deque. The buffer /// must be fully initialized. /// - index: The position at which to insert the new elements. It must be @@ -351,7 +351,7 @@ extension UniqueDeque /* where Element: Copyable */ { /// then this reallocates the deque's storage to grow its capacity, using a /// geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to insert into the deque. /// - index: The position at which to insert the new elements. It must be /// a valid index of the deque. @@ -426,7 +426,7 @@ extension UniqueDeque /* where Element: Copyable */ { /// then this reallocates the deque's storage to grow its capacity, using a /// geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - newElements: The new elements to insert into the deque. /// - index: The position at which to insert the new elements. It must be /// a valid index of the deque. @@ -460,7 +460,7 @@ extension UniqueDeque /* where Element: Copyable */ { /// then this reallocates the deque's storage to grow its capacity, using a /// geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to insert into the deque. /// - index: The position at which to insert the new elements. It must be /// a valid index of the deque. @@ -492,7 +492,7 @@ extension UniqueDeque /* where Element: Copyable */ { /// then this reallocates the deque's storage to grow its capacity, using a /// geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to insert into the deque. /// - index: The position at which to insert the new elements. It must be /// a valid index of the deque. diff --git a/Sources/DequeModule/UniqueDeque/UniqueDeque+Prepend.swift b/Sources/DequeModule/UniqueDeque/UniqueDeque+Prepend.swift index 6ed91d33..90611346 100644 --- a/Sources/DequeModule/UniqueDeque/UniqueDeque+Prepend.swift +++ b/Sources/DequeModule/UniqueDeque/UniqueDeque+Prepend.swift @@ -79,7 +79,7 @@ extension UniqueDeque where Element: ~Copyable { /// } /// // `buffer` now contains [0, 1, 2, 3, 999] /// - /// - Parameters + /// - Parameters: /// - maximumCount: The maximum number of items to prepend to the deque. /// - body: A callback that gets called at most twice to directly /// populate newly reserved storage within the deque. @@ -108,7 +108,7 @@ extension UniqueDeque where Element: ~Copyable { /// elements, then this method reallocates the deque's storage to grow it, /// using a geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: A fully initialized buffer whose contents to move into /// the deque. /// @@ -131,7 +131,7 @@ extension UniqueDeque where Element: ~Copyable { /// elements, then this method reallocates the deque's storage to grow it, /// using a geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: An input span whose contents need to be prepended to this deque. /// /// - Complexity: O(`items.count`) when amortized over many similar @@ -155,7 +155,7 @@ extension UniqueDeque where Element: ~Copyable { /// elements, then this method reallocates the deque's storage to grow it, /// using a geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: An output span whose contents need to be prepended to this deque. /// /// - Complexity: O(`items.count`) when amortized over many similar @@ -191,7 +191,7 @@ extension UniqueDeque where Element: ~Copyable { /// the adjusted count. This adds some overhead compared to adding exactly as /// many items as promised. /// - /// - Parameters + /// - Parameters: /// - maximumCount: The maximum number of items to prepend to the deque, or /// nil to use all available capacity. /// - producer: A producer that generates the items to prepend. @@ -241,7 +241,7 @@ extension UniqueDeque /*where Element: Copyable*/ { /// number of new elements, then this method reallocates the deque's storage /// to grow it, using a geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: A fully initialized buffer whose contents to copy into /// the deque. /// @@ -263,7 +263,7 @@ extension UniqueDeque /*where Element: Copyable*/ { /// number of new elements, then this method reallocates the deque's storage /// to grow it, using a geometric growth rate. /// - /// - Parameters + /// - Parameters: /// - items: A fully initialized buffer whose contents to copy into /// the deque. /// @@ -282,7 +282,7 @@ extension UniqueDeque /*where Element: Copyable*/ { /// If the deque does not have sufficient capacity to hold all items in the /// span, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: A span whose contents to copy into the deque. /// /// - Complexity: O(`items.count`) when amortized over many similar @@ -336,7 +336,7 @@ extension UniqueDeque /*where Element: Copyable*/ { /// operation works by first appending the items, then finalizing the /// prepend by rotating them in place as a postprocessing step. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to copy into the deque. /// /// - Complexity: O(*m*), where *m* is the length of `items`, as amortized @@ -354,7 +354,7 @@ extension UniqueDeque /*where Element: Copyable*/ { /// If the deque does not have sufficient capacity to hold all items in the /// container, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to copy into the deque. /// /// - Complexity: O(`items.count`) when amortized over many similar @@ -444,7 +444,7 @@ extension UniqueDeque /*where Element: Copyable*/ { /// If the deque does not have sufficient capacity to hold all items in the /// sequence, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to copy into the deque. /// /// - Complexity: O(*m*), where *m* is the length of `items`, as amortized @@ -461,7 +461,7 @@ extension UniqueDeque /*where Element: Copyable*/ { /// If the deque does not have sufficient capacity to hold all items in the /// sequence, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - newElements: The new elements to copy into the deque. /// /// - Complexity: O(*m*), where *m* is the length of `items` when amortized @@ -478,7 +478,7 @@ extension UniqueDeque /*where Element: Copyable*/ { /// If the deque does not have sufficient capacity to hold all items in the /// sequence, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to copy into the deque. /// /// - Complexity: O(*m*), where *m* is the length of `items` when amortized @@ -495,7 +495,7 @@ extension UniqueDeque /*where Element: Copyable*/ { /// If the deque does not have sufficient capacity to hold all items in the /// sequence, then this triggers a runtime error. /// - /// - Parameters + /// - Parameters: /// - items: The new elements to copy into the deque. /// /// - Complexity: O(*m*), where *m* is the length of `items` when amortized diff --git a/Sources/DequeModule/UniqueDeque/UniqueDeque+Replacements.swift b/Sources/DequeModule/UniqueDeque/UniqueDeque+Replacements.swift index a2ca9d54..bec74b5b 100644 --- a/Sources/DequeModule/UniqueDeque/UniqueDeque+Replacements.swift +++ b/Sources/DequeModule/UniqueDeque/UniqueDeque+Replacements.swift @@ -63,7 +63,7 @@ extension UniqueDeque where Element: ~Copyable { /// the adjusted count. This adds some overhead compared to adding exactly as /// many items as promised. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the deque to replace. The bounds of /// the range must be valid indices in the deque. /// - newItemCount: the maximum number of items to replace the old subrange. @@ -128,7 +128,7 @@ extension UniqueDeque where Element: ~Copyable { /// the adjusted count. This adds some overhead compared to adding exactly as /// many items as promised. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the deque to replace. The bounds of /// the range must be valid indices in the deque. /// - newItemCount: the maximum number of items to replace the old subrange. @@ -186,7 +186,7 @@ extension UniqueDeque where Element: ~Copyable { /// without replacement. This case is more directly expressed by calling /// `removeSubrange`. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the deque to replace. The bounds of /// the range must be valid indices in the deque. /// - items: A fully initialized buffer whose contents to move into @@ -231,7 +231,7 @@ extension UniqueDeque where Element: ~Copyable { /// without replacement. This case is more directly expressed by calling /// `removeSubrange`. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the deque to replace. The bounds of /// the range must be valid indices in the deque. /// - items: An input span whose contents are to be moved into the deque. @@ -271,7 +271,7 @@ extension UniqueDeque where Element: ~Copyable { /// without replacement. This case is more directly expressed by calling /// `removeSubrange`. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the array to replace. The bounds of /// the range must be valid indices in the deque. /// - items: An output span whose contents are to be moved into the deque. @@ -321,7 +321,7 @@ extension UniqueDeque where Element: ~Copyable { /// items to their correct positions given the adjusted count. This adds some /// overhead compared to adding exactly as many items as promised. /// - /// - Parameters + /// - Parameters: /// - subrange: The subrange of the deque to replace. The bounds of /// the range must be valid indices in the deque. /// - maximumCount: The maximum number of items to insert into the deque. diff --git a/Sources/DequeModule/_UnsafeDequeHandle.swift b/Sources/DequeModule/_UnsafeDequeHandle.swift index 05853add..b9546237 100644 --- a/Sources/DequeModule/_UnsafeDequeHandle.swift +++ b/Sources/DequeModule/_UnsafeDequeHandle.swift @@ -679,7 +679,7 @@ extension _UnsafeDequeHandle where Element: ~Copyable { /// it throws an error. In such cases, the deque keeps all items that were /// successfully initialized before the callback terminated. /// - /// - Parameters + /// - Parameters: /// - capacity: The maximum number of items to append to the deque. /// - body: A callback that gets called at most twice to directly /// populate newly reserved storage within the deque. The function @@ -739,7 +739,7 @@ extension _UnsafeDequeHandle where Element: ~Copyable { /// } /// // `buffer` now contains [0, 1, 2, 3, 4, 5, 10] /// - /// - Parameters + /// - Parameters: /// - count: The number of items to append to the deque. /// - body: A callback that gets called at most twice to directly /// populate newly reserved storage within the deque. The function @@ -777,7 +777,7 @@ extension _UnsafeDequeHandle where Element: ~Copyable { /// This unchecked routine does not verify that the deque has sufficient /// capacity to store the new items. /// - /// - Parameters + /// - Parameters: /// - items: A fully initialized buffer whose contents to move into /// the deque. /// @@ -804,7 +804,7 @@ extension _UnsafeDequeHandle where Element: ~Copyable { /// This unchecked routine does not verify that the deque has sufficient /// capacity to store the new items. /// - /// - Parameters + /// - Parameters: /// - items: A fully initialized buffer whose contents to move into /// the deque. ///