mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
Fixed a typo in the docs
This commit is contained in:
parent
4bb0aab1ce
commit
2385efef31
@ -86,7 +86,7 @@ All nodes have the following methods:
|
||||
|
||||
```js
|
||||
var node = math.parse('3 * x + 2');
|
||||
node.traverse(function (node, path, parent) {
|
||||
node.forEach(function (node, path, parent) {
|
||||
switch (node.type) {
|
||||
case 'OperatorNode': console.log(node.type, node.op); break;
|
||||
case 'ConstantNode': console.log(node.type, node.value); break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user