mirror of
https://gitee.com/openharmony/third_party_rust_nom
synced 2024-11-23 15:40:19 +00:00
fix return type in example
This commit is contained in:
parent
954114af1b
commit
eef808017b
@ -175,7 +175,7 @@ the closure that it returns.
|
||||
You can then use it that way:
|
||||
|
||||
```rust
|
||||
fn parser(i: &str) -> IResult<&str, &str> {
|
||||
fn parser(i: &str) -> IResult<&str, (&str, &str)> {
|
||||
pair(alpha0, digit0)(i)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user