docs: correct C API heading function name in stats/base/dists/exponential/logcdf#11996
Merged
docs: correct C API heading function name in stats/base/dists/exponential/logcdf#11996
stats/base/dists/exponential/logcdf#11996Conversation
…ntial/logcdf` The C API heading in `logcdf/README.md` documented `stdlib_base_dists_exponential_cdf`, copy-pasted from the sibling `cdf` package, instead of the actual function name `stdlib_base_dists_exponential_logcdf` (already used correctly in the same file's code blocks at lines 171, 181, 222 and in `src/main.c`, `src/addon.c`, and the public header). Conformance: 13/14 sibling packages in `stats/base/dists/exponential/` (93%) name their C API heading to match the implemented function. `logcdf` was the lone outlier.
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
kgryte
approved these changes
May 8, 2026
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
Corrects a copy-paste typo in the
## C APIssection oflib/node_modules/@stdlib/stats/base/dists/exponential/logcdf/README.md. The####heading on line 166 documentedstdlib_base_dists_exponential_cdf( x, lambda )— thecdfsibling's function name — instead of the actual functionstdlib_base_dists_exponential_logcdf( x, lambda ). The same file's subsequent code blocks (lines 171, 181, 222), the public header (include/stdlib/stats/base/dists/exponential/logcdf.h),src/main.c, andsrc/addon.call use the correct name.stats/base/dists/exponential/logcdfSole drift item: C API heading text drifted from the function it documents (13/14 = 93% of sibling packages with a C API section name the heading to match the implemented function). One-line fix; no code, tests, or examples touched.
Related Issues
None.
Questions
No.
Other
Cross-package drift scan over the 15 members of
@stdlib/stats/base/dists/exponential/. Structural extraction (file trees,package.jsonshape, README headings,manifest.jsonshape) and semantic extraction (signatures, validation prologues, error construction, JSDoc shape, dependencies) found one feature with a clear majority and a single outlier:####heading text matches function name: 13/14 packages with a C API section conform;logcdfwas the lone outlier.Other inter-package differences (
PositiveNumbervsNonNegativeNumberparameter typing, presence offactory(), presence of native bindings) reflect genuine semantic groupings (scalar-valued vs bivariate functions;ctoris a JS-only constructor) and were excluded from the drift list. Validation: structural review confirmed the heading-name pattern, and a cross-reference check confirmed no test or example referencesstdlib_base_dists_exponential_cdffrom within thelogcdfpackage.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was authored by Claude Code as part of a cross-package API drift detection routine. The routine extracted structural and semantic features from all 15 packages in
@stdlib/stats/base/dists/exponential/, computed per-feature majority patterns, and flagged a single outlier — a copy-paste error in thelogcdfREADME's C API heading. Validation confirmed the deviation was unintentional (every other reference in the same file already uses the correct function name) and the fix is mechanical (one-word heading correction, no behavior change).Generated by Claude Code