mirror of
https://gitee.com/openharmony/third_party_rust_nom
synced 2025-02-18 14:47:29 +00:00
fix IResult’s declaration in top-level documentation
This commit is contained in:
parent
9bc1712e61
commit
e07dcbd544
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user