Skip to content

Commit

Permalink
Docs: Fix some minor typos in the READMEs (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
doersino committed Nov 12, 2020
1 parent dbdd5a7 commit 4c70052
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ const ast = espree.parse(code);

### `parse()`

`parse` parses the given code and returns a abstract syntax tree (AST). It takes two paramenter.
`parse` parses the given code and returns a abstract syntax tree (AST). It takes two parameters.

- `code` [string]() - the code which needs to be parsed.
- `options (Optional)` [Object]() - read more about this [here](#options)
- `options (Optional)` [Object]() - read more about this [here](#options).

```javascript
const espree = require("espree");
Expand Down Expand Up @@ -71,10 +71,10 @@ Node {

### `tokenize()`

`tokenize` returns the tokens of a give code. It takes two paramenter.
`tokenize` returns the tokens of a given code. It takes two parameters.

- `code` [string]() - the code which needs to be parsed.
- `options (Optional)` [Object]() - read more about this [here](#options)
- `options (Optional)` [Object]() - read more about this [here](#options).

Even if `options` is empty or undefined or `options.tokens` is `false`, it assigns it to `true` in order to get the `tokens` array

Expand Down Expand Up @@ -112,7 +112,7 @@ Returns the latest ECMAScript supported by `espree`

### `supportedEcmaVersions`

Returns an array of all supported ECMAScript version
Returns an array of all supported ECMAScript versions

## Options

Expand Down
10 changes: 5 additions & 5 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ const ast = espree.parse(code);

### `parse()`

`parse` parses the given code and returns a abstract syntax tree (AST). It takes two paramenter.
`parse` parses the given code and returns a abstract syntax tree (AST). It takes two parameters.

- `code` [string]() - the code which needs to be parsed.
- `options (Optional)` [Object]() - read more about this [here](#options)
- `options (Optional)` [Object]() - read more about this [here](#options).

```javascript
const espree = require("espree");
Expand Down Expand Up @@ -71,10 +71,10 @@ Node {

### `tokenize()`

`tokenize` returns the tokens of a give code. It takes two paramenter.
`tokenize` returns the tokens of a given code. It takes two parameters.

- `code` [string]() - the code which needs to be parsed.
- `options (Optional)` [Object]() - read more about this [here](#options)
- `options (Optional)` [Object]() - read more about this [here](#options).

Even if `options` is empty or undefined or `options.tokens` is `false`, it assigns it to `true` in order to get the `tokens` array

Expand Down Expand Up @@ -112,7 +112,7 @@ Returns the latest ECMAScript supported by `espree`

### `supportedEcmaVersions`

Returns an array of all supported ECMAScript version
Returns an array of all supported ECMAScript versions

## Options

Expand Down

0 comments on commit 4c70052

Please sign in to comment.