Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy/paste errors in docs of count and none_of combinators #82

Closed
jgallagher opened this issue Feb 1, 2017 · 1 comment
Closed

Copy/paste errors in docs of count and none_of combinators #82

jgallagher opened this issue Feb 1, 2017 · 1 comment

Comments

@jgallagher
Copy link

count, none_of, and one_of all have the same document description:

Extract one token and succeeds if it is part of tokens.

which I assume is correct for one_of but not the other two. :) Additionally, the docs for count give an example of none_of:

let result = many(none_of("abc".chars()))
    .parse("edc");
assert_eq!(result, Ok((String::from("ed"), "c")));
@Marwes
Copy link
Owner

Marwes commented Feb 1, 2017

Fixed in 97e3a24, thanks for reporting!

@Marwes Marwes closed this as completed Feb 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants