Skip to content

Commit

Permalink
fix: #2959 typo in doc (#2963)
Browse files Browse the repository at this point in the history
* Update parsing.md

Fixing doc typo

* Update parser.js

Fixing typo in doc

* Update Parser.js

Fix typo in doc
  • Loading branch information
kunalagrwl committed Jun 7, 2023
1 parent 23cf6e8 commit 6e25f5a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/expressions/parsing.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ parser.evaluate('f(x, y) = x^y') // f(x, y)
parser.evaluate('f(2, 3)') // 8

// get and set variables and functions
const x = parser.get('x') // x = 7
const x = parser.get('x') // x = 3.5
const f = parser.get('f') // function
const g = f(3, 3) // g = 27
parser.set('h', 500)
Expand Down
2 changes: 1 addition & 1 deletion src/expression/Parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const createParserClass = /* #__PURE__ */ factory(name, dependencies, ({
* parser.evaluate('f(2, 3)') // 8
*
* // get and set variables and functions
* const x = parser.get('x') // 7
* const x = parser.get('x') // 3.5
* const f = parser.get('f') // function
* const g = f(3, 2) // 9
* parser.set('h', 500)
Expand Down
2 changes: 1 addition & 1 deletion src/expression/function/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const createParser = /* #__PURE__ */ factory(name, dependencies, ({ typed
* parser.evaluate('f(2, 3)') // 8
*
* // get and set variables and functions
* const x = parser.get('x') // 7
* const x = parser.get('x') // 3.5
* const f = parser.get('f') // function
* const g = f(3, 2) // 9
* parser.set('h', 500)
Expand Down

0 comments on commit 6e25f5a

Please sign in to comment.