Skip to content

Commit 4c70052

Browse files
authored
Docs: Fix some minor typos in the READMEs (#455)
1 parent dbdd5a7 commit 4c70052

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ const ast = espree.parse(code);
2727

2828
### `parse()`
2929

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

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

3535
```javascript
3636
const espree = require("espree");
@@ -71,10 +71,10 @@ Node {
7171

7272
### `tokenize()`
7373

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

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

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

@@ -112,7 +112,7 @@ Returns the latest ECMAScript supported by `espree`
112112

113113
### `supportedEcmaVersions`
114114

115-
Returns an array of all supported ECMAScript version
115+
Returns an array of all supported ECMAScript versions
116116

117117
## Options
118118

docs/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ const ast = espree.parse(code);
2727

2828
### `parse()`
2929

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

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

3535
```javascript
3636
const espree = require("espree");
@@ -71,10 +71,10 @@ Node {
7171

7272
### `tokenize()`
7373

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

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

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

@@ -112,7 +112,7 @@ Returns the latest ECMAScript supported by `espree`
112112

113113
### `supportedEcmaVersions`
114114

115-
Returns an array of all supported ECMAScript version
115+
Returns an array of all supported ECMAScript versions
116116

117117
## Options
118118

0 commit comments

Comments
 (0)