Skip to content

Commit

Permalink
Fix nom parser output example
Browse files Browse the repository at this point in the history
  • Loading branch information
lucatrv authored Nov 3, 2018
1 parent 4885a06 commit dc81284
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 dc81284

Please sign in to comment.