Skip to content

Commit

Permalink
Fix "ElseError" example in doc (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
atifaziz authored Apr 28, 2024
1 parent f1586c8 commit 753ac96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/parsers.md
Original file line number Diff line number Diff line change
Expand Up @@ -660,15 +660,15 @@ Usage:
var parser =
Terms.Char('a')
.Or(Terms.Char('b')
.Or(Terms.Char('c').Error("Unexpected char c")
.Or(Terms.Char('c').Error("Unexpected char c")));

parser.Parse("1,");
parser.Parse("c");
```

Result:

```
failure: "Expected an integer at (1:3)
failure: "Unexpected char c"
```
### When

Expand Down

0 comments on commit 753ac96

Please sign in to comment.