Repository navigation
Attach the vec(state) docstring so its references resolve - #1064
Merged
Merged
Conversation
A comment between `@doc raw"""..."""` and `@noinline function Base.vec` left the docstring unattached, so the API pages never listed it and every `@ref` to it failed. Closes #1057. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Benchmark comparison vs baseMinimum time per call. Buckets are PR time as a % of base, so lower is faster (🟢 faster, ⚪ within 5%, 🔴 slower). Counts of benchmarks per bucket:
Evaluation — 24 benchmarks (by time change)
AD gradients — 63 benchmarks (by time change)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1057.
The
vec(state)docstring was never attached, so the docs could not resolve links to it.A comment sat between the docstring and the method, and this moves it above the docstring.
Claude Opus 5.5 [high]
Cause
In
src/operators/state_vector.jl, a three-line comment sat between the closing"""of@doc raw"""..."""and@noinline function Base.vec(state::State).In that position Julia drops the docstring:
Base.Docs.meta(ComposableRecurrences)had no entry forBase.vec.A minimal module on Julia 1.12 shows the same thing: the comment loses the docstring, and without the comment it attaches.
So the kit's API page generator found no docstring to list (it warned "no own MultiDoc found for ComposableRecurrences.vec") and fell back to a bare entry.
Each
@ref Base.vec(::ComposableRecurrences.State)then failed.Fix
Move the comment above the
@docblock.A scan of
src/andext/found no other docstring followed by a comment.Evidence
After the change, run locally on Julia 1.12:
Base.Docs.meta(ComposableRecurrences)[Binding(Base, :vec)].order == [Tuple{State}].DocsBuild._docs_entries(ComposableRecurrences, :vec)returns["ComposableRecurrences.vec(::ComposableRecurrences.State)"]. This is the same form astranspose(::Convolution), which already resolves.jldoctestnow runs. Its code, run by hand, gives the stated output(3, [2.0, 2.22, 97.78], true).This was opened by a bot. Please ping @seabbs for any questions.