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

Wrong function documentation for chumsky::pratt::postfix and chumsky::pratt::prefix #725

Open
Cookie04DE opened this issue Feb 2, 2025 · 0 comments

Comments

@Cookie04DE
Copy link
Contributor

The documentation for chumsky::pratt::postfix suggests the expected function has the signature impl Fn(Op, Atom, &mut MapExtra<'src, '_, I, E>) -> O when it in fact has the following signature impl Fn(Atom, Op, &mut MapExtra<'src, '_, I, E>) -> Atom.

Same goes for prefix which actual signature is impl Fn(Op, Atom, &mut MapExtra<'src, '_, I, E>) -> Atom not impl impl Fn(Atom, Op, &mut MapExtra<'src, '_, I, E>) -> O.

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

1 participant