Skip to content

Wrong documentation for Parser::parse_nested_block? #281

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

Closed
d4h0 opened this issue Jan 30, 2021 · 2 comments
Closed

Wrong documentation for Parser::parse_nested_block? #281

d4h0 opened this issue Jan 30, 2021 · 2 comments

Comments

@d4h0
Copy link

d4h0 commented Jan 30, 2021

Hi,

The docs of Parser::parse_nested_block say at the end:

The result is overridden to Err(()) if the closure leaves some input before that point.

However, it seems an UnexpectedToken error is returned:

    ParseError {
        kind: Basic(
            UnexpectedToken(
                Delim(
                    '=',
                ),
            ),
        ),
        location: SourceLocation {
            line: 203,
            column: 6,
        },
    },

That also make more sense, I think.

@d4h0
Copy link
Author

d4h0 commented Jan 30, 2021

The same is probably true for parse_entirely, and other methods that say the above.

@emilio
Copy link
Member

emilio commented Apr 6, 2024

#372 Fixed this aiui

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