From eef808017b6a5791ff806ec4edc5b2772ec6d6c5 Mon Sep 17 00:00:00 2001 From: Jos van den Oever Date: Fri, 2 Aug 2019 23:26:35 +0200 Subject: [PATCH] fix return type in example --- doc/upgrading_to_nom_5.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/upgrading_to_nom_5.md b/doc/upgrading_to_nom_5.md index 452cc78cf..656d31f92 100644 --- a/doc/upgrading_to_nom_5.md +++ b/doc/upgrading_to_nom_5.md @@ -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) }