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

@@ -56,9 +56,9 @@ extension BitArray: RandomAccessCollection, MutableCollection {
/// Returns the position immediately after the given index.
///
/// - Parameter `index`: A valid index of the bit set. `index` must be less than `endIndex`.
/// - Parameter i: A valid index of the bit set. `i` must be less than `endIndex`.
///
/// - Returns: The valid index immediately after `index`.
/// - Returns: The valid index immediately after `i`.
///
/// - Complexity: O(1)
@inlinable @inline(__always)
@@ -66,10 +66,10 @@ extension BitArray: RandomAccessCollection, MutableCollection {
/// Returns the position immediately before the given index.
///
/// - Parameter `index`: A valid index of the bit set. `index` must be greater
/// - Parameter i: A valid index of the bit set. `i` must be greater
/// than `startIndex`.
///
/// - Returns: The valid index immediately before `index`.
/// - Returns: The valid index immediately before `i`.
///
/// - Complexity: O(1)
@inlinable @inline(__always)