diff options
| author | nils <48135649+Nilstrieb@users.noreply.github.com> | 2022-10-26 22:06:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-26 22:06:35 +0200 |
| commit | da407ed38f6bcb79683379d59d18e615d2b8dfaa (patch) | |
| tree | b592add67de08c1b1d926f40b248ef31e358f0ce /compiler/rustc_parse/src | |
| parent | 796114a5b0c66abbb2527257b8a38c4cda964a66 (diff) | |
| download | rust-da407ed38f6bcb79683379d59d18e615d2b8dfaa.tar.gz rust-da407ed38f6bcb79683379d59d18e615d2b8dfaa.zip | |
Fix typo
Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/parser/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/mod.rs b/compiler/rustc_parse/src/parser/mod.rs index 4376e5832ef..5fe29062b85 100644 --- a/compiler/rustc_parse/src/parser/mod.rs +++ b/compiler/rustc_parse/src/parser/mod.rs @@ -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) |
