From 61ae39743c2d2b8d09b4d0efcdf621c3e67d9ca9 Mon Sep 17 00:00:00 2001 From: hxperl <16929288+hxperl@users.noreply.github.com> Date: Fri, 11 Sep 2026 14:17:54 +0900 Subject: [PATCH] Fix the parameter callout on the mutating trimPrefix(while:) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `Collection where Self == Self.SubSequence` overload of `trimPrefix(while:)` writes its parameter callout as `- Parameters predicate:` — plural `Parameters`, which DocC reads as the header of a nested parameter list rather than as a `- Parameter :` entry. Because no nested list follows, the entry binds to nothing and the description is dropped from the rendered page entirely: the method shows no Parameters section at all. The other eight callouts in this file, including the near-identical overload 25 lines above, already use the singular form. --- Sources/Algorithms/Trim.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Algorithms/Trim.swift b/Sources/Algorithms/Trim.swift index 1f66cb91..18f4c789 100644 --- a/Sources/Algorithms/Trim.swift +++ b/Sources/Algorithms/Trim.swift @@ -80,7 +80,7 @@ extension Collection where Self == Self.SubSequence { /// myString.trimPrefix(while: \.isWhitespace) /// print(myString) // "hello, world " /// - /// - Parameters predicate: A closure that determines if the element should + /// - Parameter predicate: A closure that determines if the element should /// be removed from the string. /// /// - Complexity: O(*n*), where *n* is the length of this collection.