Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

‎compiler/rustc_parse/src/parser/mod.rs‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /