From 80216ab0267270ebb16cecf68b7dcd388853bef2 Mon Sep 17 00:00:00 2001 From: hxperl <16929288+hxperl@users.noreply.github.com> Date: Fri, 11 Sep 2026 14:07:13 +0900 Subject: [PATCH] Unbacktick parameter names so DocC binds the parameter docs Six `- Parameter` entries in `Deque` and `BitSet` write the parameter name inside backticks (``- Parameter `i`:``). DocC binds parameter documentation by bare identifier, so these never attach: no Parameters section is rendered at all, and the entry instead falls into the Discussion as a literal "Parameter `i`: ..." bullet, which also swallows the `- Complexity:` callout that follows it. Dropping the backticks around the name restores the Parameters section on all six pages. Backticks inside the description text are left alone. --- .../BitSet/BitSet+BidirectionalCollection.swift | 4 ++-- Sources/DequeModule/Deque/Deque+Collection.swift | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Sources/BitCollections/BitSet/BitSet+BidirectionalCollection.swift b/Sources/BitCollections/BitSet/BitSet+BidirectionalCollection.swift index b6f21550..144793cf 100644 --- a/Sources/BitCollections/BitSet/BitSet+BidirectionalCollection.swift +++ b/Sources/BitCollections/BitSet/BitSet+BidirectionalCollection.swift @@ -174,7 +174,7 @@ extension BitSet: Collection, BidirectionalCollection { /// Returns the position immediately after the given index. /// - /// - Parameter `index`: A valid index of the bit set. `index` must be less + /// - Parameter index: A valid index of the bit set. `index` must be less /// than `endIndex`. /// /// - Returns: The valid index immediately after `index`. @@ -194,7 +194,7 @@ extension BitSet: Collection, BidirectionalCollection { /// Returns the position immediately before the given index. /// - /// - Parameter `index`: A valid index of the bit set. + /// - Parameter index: A valid index of the bit set. /// `index` must be greater than `startIndex`. /// /// - Returns: The preceding valid index immediately before `index`. diff --git a/Sources/DequeModule/Deque/Deque+Collection.swift b/Sources/DequeModule/Deque/Deque+Collection.swift index 2852c8ee..1a252557 100644 --- a/Sources/DequeModule/Deque/Deque+Collection.swift +++ b/Sources/DequeModule/Deque/Deque+Collection.swift @@ -210,7 +210,7 @@ extension Deque: RandomAccessCollection { /// Returns the position immediately after the given index. /// - /// - Parameter `i`: A valid index of the deque. `i` must be less than + /// - Parameter i: A valid index of the deque. `i` must be less than /// `endIndex`. /// /// - Returns: The next valid index immediately after `i`. @@ -226,7 +226,7 @@ extension Deque: RandomAccessCollection { /// Replaces the given index with its successor. /// - /// - Parameter `i`: A valid index of the deque. `i` must be less than + /// - Parameter i: A valid index of the deque. `i` must be less than /// `endIndex`. /// /// - Complexity: O(1) @@ -241,7 +241,7 @@ extension Deque: RandomAccessCollection { /// Returns the position immediately before the given index. /// - /// - Parameter `i`: A valid index of the deque. `i` must be greater than + /// - Parameter i: A valid index of the deque. `i` must be greater than /// `startIndex`. /// /// - Returns: The preceding valid index immediately before `i`. @@ -257,7 +257,7 @@ extension Deque: RandomAccessCollection { /// Replaces the given index with its predecessor. /// - /// - Parameter `i`: A valid index of the deque. `i` must be greater than `startIndex`. + /// - Parameter i: A valid index of the deque. `i` must be greater than `startIndex`. /// /// - Complexity: O(1) @inlinable