Skip to content

Commit 1606df0

Browse files
committed
docs: fix wording
1 parent 649b2b3 commit 1606df0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,9 @@ const parser = new Parser()
349349
```
350350

351351
### namely(alias)
352-
Set an alias to this parser, so there will be an opportunity to refer to it by
353-
name in methods like `.array`, `.nest` and `.choice`, instead of requirement
354-
to have an instance of it.
352+
Set an alias to this parser, so that it can be referred to by name in methods
353+
like `.array`, `.nest` and `.choice`, without the requirement to have an
354+
instance of this parser.
355355

356356
Especially, the parser may reference itself:
357357

@@ -414,7 +414,7 @@ to avoid this, ensure that every possible path has its end. Also, this
414414
recursion is not tail-optimized, so could lead to memory leaks when it goes
415415
too deep.
416416

417-
An example of referencing other patches:
417+
An example of referencing other parsers:
418418

419419
```javascript
420420
// the line below registers the name "self", so we will be able to use it in

0 commit comments

Comments
 (0)