We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 796114a commit da407edCopy full SHA for da407ed
compiler/rustc_parse/src/parser/mod.rs
@@ -511,7 +511,7 @@ impl<'a> Parser<'a> {
511
/// If this returns false, recovering broken code into valid code (especially if this recovery does lookahead)
512
/// is not allowed. All recovery done by the parser must be gated behind this check.
513
///
514
- /// 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.
515
/// But making the distinction is very subtle, and simply forbidding all recovery is a lot simpler to uphold.
516
fn may_recover(&self) -> bool {
517
matches!(self.recovery, Recovery::Allowed)
0 commit comments