specify the syntax highlight to code snippet in error doc

This commit is contained in:
Drumato 2021-09-22 17:24:51 +09:00 committed by Geoffroy Couprie
parent e1cf43a6fc
commit 8ab6827c2d

View File

@ -316,7 +316,7 @@ struct DebugError {
Now let's implement `ParseError` and `ContextError` on it:
```
```rust
impl ParseError<&str> for DebugError {
// on one line, we show the error code and the input that caused it
fn from_error_kind(input: &str, kind: ErrorKind) -> Self {