Merge pull request #1927 from clutchski/traverse-children

Documentation fix: s/traverse/traverseChildren/
This commit is contained in:
Michael Ficarra
2011-12-11 22:03:23 -08:00

View File

@@ -45,7 +45,7 @@ exports.tokens = (code, options) ->
# Parse a string of CoffeeScript code or an array of lexed tokens, and
# return the AST. You can then compile it by calling `.compile()` on the root,
# or traverse it by using `.traverse()` with a callback.
# or traverse it by using `.traverseChildren()` with a callback.
exports.nodes = (source, options) ->
if typeof source is 'string'
parser.parse lexer.tokenize source, options