Skip to content

Commit

Permalink
Merge pull request #79 from lucatrv/patch-6
Browse files Browse the repository at this point in the history
Fix `nom` parser output example
  • Loading branch information
stevedonovan authored Dec 21, 2019
2 parents 21a5a54 + dc81284 commit 11650e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nom-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ fn main() {

println!("result {:?}", get_greeting(" bye ").to_result());
}
// Done Ok("") "hi"
// Done Ok("hi") "bye"
// Done "" "hi"
// Done "hi" "bye"
// Err Alt
// result Ok("bye")
```
Expand Down

0 comments on commit 11650e1

Please sign in to comment.