Skip to content

Commit

Permalink
Fix closure syntax in error_management.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jtracey authored and Geal committed Jan 2, 2023
1 parent 69775a5 commit 1e2c946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/error_management.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ method:

```rust
let result: Result<(&[u8], Value), Err<Vec<u8>>> =
parser(data).map_err(|e: E<&[u8]>| -> e.to_owned());
parser(data).map_err(|e: E<&[u8]>| e.to_owned());
```

nom provides a powerful error system that can adapt to your needs: you can
Expand Down

0 comments on commit 1e2c946

Please sign in to comment.