Fix typo
Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
This commit is contained in:
parent
796114a5b0
commit
da407ed38f
1 changed files with 1 additions and 1 deletions
|
@ -511,7 +511,7 @@ impl<'a> Parser<'a> {
|
|||
/// If this returns false, recovering broken code into valid code (especially if this recovery does lookahead)
|
||||
/// is not allowed. All recovery done by the parser must be gated behind this check.
|
||||
///
|
||||
/// Technically, this only needs to restruct eager recovery by doing lookahead at more tokens.
|
||||
/// Technically, this only needs to restrict eager recovery by doing lookahead at more tokens.
|
||||
/// But making the distinction is very subtle, and simply forbidding all recovery is a lot simpler to uphold.
|
||||
fn may_recover(&self) -> bool {
|
||||
matches!(self.recovery, Recovery::Allowed)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue