Skip to content

docs: fix Syntax section in numeric function documentation #3444 #3448

Closed
apoorv-x12 wants to merge 3 commits into
josdejong:developfrom
apoorv-x12:apoorv-x12/3444-numeric-docs
Closed

docs: fix Syntax section in numeric function documentation #3444 #3448
apoorv-x12 wants to merge 3 commits into
josdejong:developfrom
apoorv-x12:apoorv-x12/3444-numeric-docs

Conversation

@apoorv-x12
Copy link
Copy Markdown

@apoorv-x12 apoorv-x12 commented Apr 5, 2025

Fix: Improve doc syntax for numeric() function #3444

This PR fixes minor documentation inconsistencies in the numeric() function docstring, including:

  • Corrected parameter formatting in Syntax
  • Clarified return type description

Tested with npm run test and npm run lint — all tests passing ✅
This is a small doc fix, so might fall under type: docs.

Thanks for maintaining this awesome library 🙌

This PR updates the Syntax: section in the JSDoc for the math.numeric function to correctly reflect valid usage patterns. It addresses issue #3444.
@josdejong
Copy link
Copy Markdown
Owner

Thanks @apoorv-x12 !

Can you restore the original indentation? You removed two spaces at the start of every line.

@apoorv-x12
Copy link
Copy Markdown
Author

Restored the indentation of the commented section to its original format.

@josdejong
Copy link
Copy Markdown
Owner

The diff https://github.com/josdejong/mathjs/pull/3448/files still looks quite confusing, I think you added two spaces indentation inside the comment? Can you have a look at that? I would expect only the lines with the syntax and return type description being changed.

@josdejong
Copy link
Copy Markdown
Owner

@apoorv-x12 can you have another look at the indentation?

josdejong added a commit that referenced this pull request May 28, 2025
@josdejong
Copy link
Copy Markdown
Owner

I've addressed this issue now via ee7dc26, closing this PR now.

@josdejong josdejong closed this May 28, 2025
@apoorv-x12 apoorv-x12 deleted the apoorv-x12/3444-numeric-docs branch February 22, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants