diff --git a/acorn.js b/acorn.js index 9dc277f4c9..c635f0777a 100644 --- a/acorn.js +++ b/acorn.js @@ -19,8 +19,8 @@ exports.version = "0.0.1"; // The main exported interface (under `window.acorn` when in the - // browser) a `parse` function that takes a code string and returns - // an abstract syntax tree as specified by [Mozilla parser + // browser) is a `parse` function that takes a code string and + // returns an abstract syntax tree as specified by [Mozilla parser // API][api], with the caveat that the SpiderMonkey-specific syntax // (`let`, `yield`, inline XML, etc) is not recognized, and that // range information is attached directly to the AST nodes as diff --git a/index.html b/index.html index c05ec7e1be..442487c9dd 100644 --- a/index.html +++ b/index.html @@ -14,8 +14,8 @@ https://github.com/marijnh/acorn.git "strict mode"; exports.version = "0.0.1";

The main exported interface (under window.acorn when in the -browser) a parse function that takes a code string and returns -an abstract syntax tree as specified by Mozilla parser +browser) is a parse function that takes a code string and +returns an abstract syntax tree as specified by Mozilla parser API, with the caveat that the SpiderMonkey-specific syntax (let, yield, inline XML, etc) is not recognized, and that range information is attached directly to the AST nodes as