docs: fix v boundary in stats/base/dists/t/entropy REPL help#12982
Draft
Planeshifter wants to merge 1 commit into
Draft
docs: fix v boundary in stats/base/dists/t/entropy REPL help#12982Planeshifter wants to merge 1 commit into
v boundary in stats/base/dists/t/entropy REPL help#12982Planeshifter wants to merge 1 commit into
Conversation
…PL help The REPL help text stated `v < 0` returns `NaN`, but the implementation returns `NaN` for any `v <= 0` (see `lib/main.js`). The README and TypeScript declarations already use `v <= 0`; update the REPL text to match (13/14 sibling packages in the namespace already pair REPL boundary wording with the `lib/main.js` check verbatim).
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
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
Fix a documentation inconsistency in
@stdlib/stats/base/dists/t/entropy.stats/base/dists/t/entropydocs/repl.txtstated the function returnsNaNforv < 0, but theimplementation in
lib/main.js(if ( isnan( v ) || v <= 0.0 )) returnsNaNfor anyv <= 0. The README and TypeScript declaration alreadyuse
v <= 0; this aligns the REPL help with code and sibling docs(13/14 packages in the namespace pair REPL boundary wording with the
lib/main.jscheck verbatim — 93% conformance).Related Issues
None.
Questions
None.
Other
None.
Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
Authored by Claude Code via a within-namespace API drift detection routine. A
random namespace was selected, structural and semantic features were extracted
from every package, and a three-agent validation pass (semantic-review,
cross-reference, structural-review) confirmed the single drift candidate
before the fix was applied. No tests or observable behavior were modified.
@stdlib-js/reviewers
Generated by Claude Code