Skip to content

Commit

Permalink
Simplify aliasing
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser authored and Geal committed Jul 15, 2018
1 parent 4a616f4 commit af60fda
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions doc/upgrading_to_nom_4.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,7 @@ If those types feel a bit long to write everywhere in the parsers, it's possible
to alias them like this:

```rust,ignore
type Input<'a> = CompleteByteSlice<'a>;
pub fn Input<'a>(input:&'a[u8]) -> Input<'a> {
CompleteByteSlice(input)
}
use nom::types::CompleteByteSlice as Input;
```

## Custom error types
Expand Down

0 comments on commit af60fda

Please sign in to comment.