fix IResult’s declaration in top-level documentation

This commit is contained in:
Ronan Desplanques 2021-06-15 17:53:12 +02:00 committed by Geoffroy Couprie
parent 9bc1712e61
commit e07dcbd544

View File

@ -175,9 +175,9 @@
//! `IResult` is an alias for the `Result` type:
//!
//! ```rust
//! use nom::{Needed, error::ErrorKind};
//! use nom::{Needed, error::Error};
//!
//! type IResult<I, O, E = (I,ErrorKind)> = Result<(I, O), Err<E>>;
//! type IResult<I, O, E = Error<I>> = Result<(I, O), Err<E>>;
//!
//! enum Err<E> {
//! Incomplete(Needed),