diff --git a/doc/error_management.md b/doc/error_management.md index abcf487f1..0cb7b5203 100644 --- a/doc/error_management.md +++ b/doc/error_management.md @@ -42,7 +42,7 @@ method: ```rust let result: Result<(&[u8], Value), Err>> = - 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