Fixed a typo in the docs

This commit is contained in:
jos 2014-12-02 10:33:08 +01:00
parent 4bb0aab1ce
commit 2385efef31

View File

@ -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;