Skip to content

Commit

Permalink
fix return type in example
Browse files Browse the repository at this point in the history
  • Loading branch information
vandenoever authored and Geal committed Aug 22, 2019
1 parent 954114a commit eef8080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/upgrading_to_nom_5.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ the closure that it returns.
You can then use it that way:

```rust
fn parser(i: &str) -> IResult<&str, &str> {
fn parser(i: &str) -> IResult<&str, (&str, &str)> {
pair(alpha0, digit0)(i)
}

Expand Down

0 comments on commit eef8080

Please sign in to comment.