Name the documented arguments the way the declarations name them

Twenty-five doc comments in the shipping modules name an argument that the
declaration below them does not have, so DocC has nothing to bind the
description to and drops it. Nothing warns about this.

Most of them are renames that the comment did not follow, and the file itself
usually holds the proof: RigidDeque.prepend says - maxCount while its own
Complexity line already says newItemCount, and append(copying:) has three
overloads where the oldest still takes newElements and the two newer ones take
items with the older one's wording.

Three entries name an argument that no longer exists at all and are removed
rather than renamed.
This commit is contained in:
Anton Karpov committed 2026-08-13 16:29:06 +03:00
1 parent f3e778f17a
commit c2b2092f94
20 files changed
+26 -29

No files matched your search

@@ -127,7 +127,7 @@ extension UniqueArray where Element: ~Copyable {
/// buffer of the specified capacity, moving all existing elements
/// to its new storage. The old storage is then deallocated.
///
/// - Parameter newCapacity: The desired new capacity. `newCapacity` must be
/// - Parameter capacity: The desired new capacity. `capacity` must be
/// greater than or equal to the current count.
///
/// - Complexity: O(`count`)
@@ -34,7 +34,7 @@ extension UniqueArray where Element: ~Copyable {
/// make room for the new item.
///
/// - Parameter item: The new element to insert into the array.
/// - Parameter i: The position at which to insert the new element.
/// - Parameter index: The position at which to insert the new element.
/// `index` must be a valid index in the array.
///
/// - Complexity: O(`self.count`)
@@ -72,7 +72,7 @@ extension UniqueArray where Element: ~Copyable {
/// // `buffer` now contains [-999, 0, 1, 2, 999]
///
/// - Parameters:
/// - count: The number of items to insert into the array.
/// - newItemCount: The number of items to insert into the array.
/// - index: The position at which to insert the new items.
/// `index` must be a valid index in the array.
/// - body: A callback that gets called at most once to directly
@@ -69,7 +69,7 @@ extension UniqueArray where Element: ~Copyable {
/// All the elements following the specified position are moved to close the
/// gap.
///
/// - Parameter i: The position of the element to remove. `index` must be
/// - Parameter index: The position of the element to remove. `index` must be
/// a valid index of the array that is not equal to the end index.
/// - Returns: The removed element.
///