Skip to content

docs: improve doctests for ndarray instances in stats/range#13644

Closed
ujjwalv01 wants to merge 2 commits into
stdlib-js:developfrom
ujjwalv01:docs-improve-doctests-ndarray-stats-range
Closed

docs: improve doctests for ndarray instances in stats/range#13644
ujjwalv01 wants to merge 2 commits into
stdlib-js:developfrom
ujjwalv01:docs-improve-doctests-ndarray-stats-range

Conversation

@ujjwalv01

@ujjwalv01 ujjwalv01 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Progresses #9329.

Description

What is the purpose of this pull request?

This pull request:

  • Improves doctests for ndarray instances in the @stdlib/stats/range package by removing the usage of ndarray2array and replacing explicit array decomposition with ndarray instance notation.

Related Issues

Does this pull request have any related issues?

This pull request has the following related issues:

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.

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 indicating how you used AI assistance. This helps reviewers determine how much scrutiny to apply when reviewing your contribution. Example disclosures: "This PR was written primarily by Claude Code." or "I consulted ChatGPT to understand the codebase, but the proposed changes were fully authored manually by myself.".


@stdlib-js/reviewers

@ujjwalv01
ujjwalv01 requested a review from a team July 24, 2026 15:34
@stdlib-bot stdlib-bot added Statistics Issue or pull request related to statistical functionality. Good First PR A pull request resolving a Good First Issue. Needs Review A pull request which needs code review. and removed Needs Review A pull request which needs code review. Good First PR A pull request resolving a Good First Issue. labels Jul 24, 2026
@stdlib-bot

stdlib-bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Coverage Report

Package Statements Branches Functions Lines
stats/range $\\color{green}158/158$
$\\color{green}+0.00\\%$
$\\color{green}2/2$
$\\color{green}+0.00\\%$
$\\color{green}0/0$
$\\color{green}+0.00\\%$
$\\color{green}158/158$
$\\color{green}+0.00\\%$

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

@stdlib-bot stdlib-bot added the Good First PR A pull request resolving a Good First Issue. label Jul 24, 2026

@kgryte kgryte left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ujjwalv01 Thanks for your pull request; however, we are not interested in updating this particular example. The example should be left as is because, for this code block, it should match the runnable code in examples/index.js and actually print output.

@kgryte kgryte closed this Jul 24, 2026
@stdlib-bot stdlib-bot removed the Needs Review A pull request which needs code review. label Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Good First PR A pull request resolving a Good First Issue. Statistics Issue or pull request related to statistical functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants