Skip to content

Unbacktick the target parameter name so DocC recognises it - #387

Open
hxperl wants to merge 7 commits into
apple:release/1.8.xfrom
hxperl:doc-duplicate-target-parameter
Open

hxperl wants to merge 7 commits into
apple:release/1.8.xfrom
hxperl:doc-duplicate-target-parameter

Conversation

@hxperl

@hxperl hxperl commented Sep 11, 2026

Copy link
Copy Markdown

The target parameter name was in backticks inside its - Parameter callout, so DocC treated it as inline code rather than a parameter name and the documentation never bound to the parameter.

One character either side. Retargeted to release/1.8.x as requested.

glessard and others added 7 commits August 6, 2026 09:52
`FileDescriptor.duplicate(as:retryOnInterrupt:)` writes its first
parameter entry as ``- `target`:`` rather than `- target:`. DocC matches
parameter documentation by the bare identifier, so the backticked entry
is not associated with the parameter: the description is dropped from
the rendered parameter list and DocC reports the parameter as
undocumented.

The `duplicate(as:options:retryOnInterrupt:)` overload twenty lines
below documents the same parameter without backticks, which is what
this changes the first overload to match.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MDv2d3fEYCVWGpu7AgD4qq
@glessard

Copy link
Copy Markdown
Contributor

This change is fine, but we don't need kilobytes of LLM-generated explanations. This is a typo fix!
Can you target the 1.8.x branch instead? This should be part of the next bugfix release.

@hxperl
hxperl changed the base branch from main to release/1.8.x September 15, 2026 01:09
@glessard

glessard commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Thanks for trimming the summary. When you retarget the branch, you also have to cherry-pick the change to the new branch, sorry. As it is, it brings along a bunch of changes we want for 1.9.x, not for 1.8.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable Soundness checks: Documentation, Unacceptable language, License headers, Swift Format, and Python lint

2 participants