Repository navigation
docs: add JSDoc examples - #15948
Merged
Merged
docs: add JSDoc examples#15948
Conversation
Added missing `@example` tags to the primary JSDoc in `lib/main.js` (present in 382 of 383 packages in `math/base/special`, 99.7%). Examples mirror those already documented in `lib/index.js`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LDgawJ2nLhuTjXQGz1yUku
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
5 of 7 tasks
kgryte
marked this pull request as ready for review
October 12, 2026 12:50
kgryte
reviewed
Oct 12, 2026
Signed-off-by: Athan <kgryte@gmail.com>
kgryte
approved these changes
Oct 12, 2026
math/base/special/gammaincinv
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.
Description
This pull request:
@exampletags to the primary JSDoc inmath/base/special/gammaincinv/lib/main.js, the only package in the namespace without them.math/base/special/gammaincinvlib/main.jsended its JSDoc at@returnswith no@exampletags, unlike 382 of 383 packages inmath/base/special(99.7%). The added examples mirror those already inlib/index.js, the README, anddocs/repl.txt, and follow the one-example-per-tag style used ingammaincandbetaincinv. Doc-only; no behavior change.Related Issues
None.
Questions
No.
Other
Namespace summary.
math/base/specialhas 383 member packages (fastwas left out because it is a namespace package). I compared 14 features: file tree,package.jsonkeys,scriptskeys,manifest.jsonkeys, README section set and order, return kind, how errors are built, whethermain.jshas an@example, whether@returnsand@paramtags have descriptions, whether@paramtags match the signature,@throwstags, and the@exampleand@moduletags inlib/index.js. 12 of them had a clear majority (at least 75% of packages); the twolib/index.jstag features did not, so I left them out.Validation. Structural features came from a filesystem pass. Semantic features came from parallel agents that read
lib/main.js,lib/index.js, andlib/validate.js. The finding was then reviewed twice: once to judge intent from the source, and once to check whether tests, docs, orstdlib/jsdoc-doctestdepend on the current state. All six example values were checked against the implementation (1.6783…,6.2213…,3.9204…,1.7273…,NaN,NaN).Left out on purpose:
gypfileor C API README sections, andrempio2,rempio2f, andkernel-sincos, which write into an output argument;[name=default]bracket syntax;hyp2f1andsqrtpifthat sit underbenchmark/c/instead ofbenchmark/c/native/, which open PR bench: clean-up #15934 already fixes.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was written primarily by Claude Code, as part of an automated check that compares packages within a namespace for consistency.
@stdlib-js/reviewers
🤖 Generated with Claude Code
https://claude.ai/code/session_01LDgawJ2nLhuTjXQGz1yUku
Generated by Claude Code