Skip to content

Wrong documentation for Parser::parse_nested_block? #281

Closed
@d4h0

Description

@d4h0

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions