Skip to content

Commit da407ed

Browse files
Noratriebestebank
andauthored
Fix typo
Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
1 parent 796114a commit da407ed

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_parse/src/parser

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_parse/src/parser/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ impl<'a> Parser<'a> {
511511
/// If this returns false, recovering broken code into valid code (especially if this recovery does lookahead)
512512
/// is not allowed. All recovery done by the parser must be gated behind this check.
513513
///
514-
/// Technically, this only needs to restruct eager recovery by doing lookahead at more tokens.
514+
/// Technically, this only needs to restrict eager recovery by doing lookahead at more tokens.
515515
/// But making the distinction is very subtle, and simply forbidding all recovery is a lot simpler to uphold.
516516
fn may_recover(&self) -> bool {
517517
matches!(self.recovery, Recovery::Allowed)

0 commit comments

Comments
 (0)