Skip to content

docs: fix package-wide doc errors in two math/iter packages#12473

Draft
Planeshifter wants to merge 1 commit into
developfrom
philipp/docs-fix-iter-pow-integers-package-wide
Draft

docs: fix package-wide doc errors in two math/iter packages#12473
Planeshifter wants to merge 1 commit into
developfrom
philipp/docs-fix-iter-pow-integers-package-wide

Conversation

@Planeshifter
Copy link
Copy Markdown
Member

Description

What is the purpose of this pull request?

Two @stdlib/math/iter findings are not specific to the TypeScript declarations — the same errors appear consistently across each package's documentation surfaces — so they are fixed package-wide here:

  • special/pow — the summary called the operation the "exponential function", but the iterator evaluates base^exponent (the power function). Reworded to "power function (i.e., base raised to the power exponent)" in the declaration, README, REPL help, lib JSDoc, and package.json description. The auto-generated "See Also" entries (which derive from other packages' metadata) are left untouched.
  • sequences/integers — the documented default for the iter option was 18014398509481984, two more than the actual default FLOAT64_MAX_SAFE_INTEGER * 2 = 18014398509481982. Corrected in the declaration, README, REPL help, and lib/main.js JSDoc.

Split out from the @stdlib/math/iter declarations PR (#12462) so the fixes apply consistently across all documentation surfaces.

Related Issues

Does this pull request have any related issues?

No.

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request?

Found via a TypeScript-declaration audit of the @stdlib/math namespace.

Checklist

Please ensure the following tasks are completed before submitting this pull request.

AI Assistance

When authoring the changes proposed in this PR, did you use any kind of AI assistance?

  • Yes
  • No

If you answered "yes" above, how did you use AI assistance?

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Disclosure

If you answered "yes" to using AI assistance, please provide a short disclosure.

These issues were identified by an automated TypeScript-declaration audit run with Claude Code, and the fixes were prepared by Claude Code under my review.


@stdlib-js/reviewers

Two findings were not specific to the TypeScript declarations but
appear consistently across each package's documentation surfaces:

- `special/pow`: the summary called the operation the "exponential
  function", but the iterator evaluates `base^exponent` (the power
  function). Reword to "power function (i.e., `base` raised to the
  power `exponent`)" in the declaration, README, REPL help, `lib`
  JSDoc, and `package.json` description. The auto-generated "See Also"
  entries are left untouched.
- `sequences/integers`: the documented default for the `iter` option
  was `18014398509481984`, two more than the actual default
  `FLOAT64_MAX_SAFE_INTEGER * 2 = 18014398509481982`. Correct it in the
  declaration, README, REPL help, and `lib/main.js` JSDoc.

Split out from the `@stdlib/math/iter` declarations PR so the fixes can
be applied consistently across all documentation surfaces.

---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
  - task: lint_filenames
    status: passed
  - task: lint_editorconfig
    status: passed
  - task: lint_markdown_pkg_readmes
    status: passed
  - task: lint_markdown_docs
    status: na
  - task: lint_markdown
    status: na
  - task: lint_package_json
    status: passed
  - task: lint_repl_help
    status: passed
  - task: lint_javascript_src
    status: passed
  - task: lint_javascript_cli
    status: na
  - task: lint_javascript_examples
    status: na
  - task: lint_javascript_tests
    status: na
  - task: lint_javascript_benchmarks
    status: na
  - task: lint_python
    status: na
  - task: lint_r
    status: na
  - task: lint_c_src
    status: na
  - task: lint_c_examples
    status: na
  - task: lint_c_benchmarks
    status: na
  - task: lint_c_tests_fixtures
    status: na
  - task: lint_shell
    status: na
  - task: lint_typescript_declarations
    status: passed
  - task: lint_typescript_tests
    status: passed
  - task: lint_license_headers
    status: passed
---
@stdlib-bot stdlib-bot added the Math Issue or pull request specific to math functionality. label Jun 3, 2026
@stdlib-bot
Copy link
Copy Markdown
Contributor

Coverage Report

Package Statements Branches Functions Lines
math/iter/sequences/integers $\color{green}276/276$
$\color{green}+100.00\%$
$\color{green}26/26$
$\color{green}+100.00\%$
$\color{green}5/5$
$\color{green}+100.00\%$
$\color{green}276/276$
$\color{green}+100.00\%$
math/iter/special/pow $\color{green}125/125$
$\color{green}+100.00\%$
$\color{green}3/3$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}125/125$
$\color{green}+100.00\%$

The above coverage report was generated for the changes in this PR.

@Planeshifter Planeshifter changed the title docs: fix package-wide doc errors in two @stdlib/math/iter packages docs: fix package-wide doc errors in two math/iter packages Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Math Issue or pull request specific to math functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants