summaryrefslogtreecommitdiffstats
path: root/vendor/nom/doc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/nom/doc
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz
rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/nom/doc')
-rw-r--r--vendor/nom/doc/nom_recipes.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/nom/doc/nom_recipes.md b/vendor/nom/doc/nom_recipes.md
index 88994858b..e8626344a 100644
--- a/vendor/nom/doc/nom_recipes.md
+++ b/vendor/nom/doc/nom_recipes.md
@@ -115,7 +115,7 @@ letters and numbers may be parsed like this:
use nom::{
IResult,
branch::alt,
- multi::many0,
+ multi::many0_count,
combinator::recognize,
sequence::pair,
character::complete::{alpha1, alphanumeric1},
@@ -126,7 +126,7 @@ pub fn identifier(input: &str) -> IResult<&str, &str> {
recognize(
pair(
alt((alpha1, tag("_"))),
- many0(alt((alphanumeric1, tag("_"))))
+ many0_count(alt((alphanumeric1, tag("_"))))
)
)(input)
}
@@ -142,7 +142,7 @@ input text that was parsed, which in this case is the entire `&str` `hello_world
### Escaped Strings
-This is [one of the examples](https://github.com/Geal/nom/blob/master/examples/string.rs) in the
+This is [one of the examples](https://github.com/Geal/nom/blob/main/examples/string.rs) in the
examples directory.
### Integers