diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2024-10-23 02:45:24 -0700 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2024-10-23 02:45:24 -0700 |
| commit | ecdc2441b6a96603dd7188652adf86e06c2dc513 (patch) | |
| tree | ba13d10e763f5bc6ec593c7551644b632a50cfa3 /compiler/rustc_parse/src/lexer/diagnostics.rs | |
| parent | 9abfcb49002b82f46ad66ceb0b26cee8be2dc658 (diff) | |
| download | rust-ecdc2441b6a96603dd7188652adf86e06c2dc513.tar.gz rust-ecdc2441b6a96603dd7188652adf86e06c2dc513.zip | |
"innermost", "outermost", "leftmost", and "rightmost" don't need hyphens
These are all standard dictionary words and don't require hyphenation.
Diffstat (limited to 'compiler/rustc_parse/src/lexer/diagnostics.rs')
| -rw-r--r-- | compiler/rustc_parse/src/lexer/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/lexer/diagnostics.rs b/compiler/rustc_parse/src/lexer/diagnostics.rs index 41108c91f2e..e1f19beb53a 100644 --- a/compiler/rustc_parse/src/lexer/diagnostics.rs +++ b/compiler/rustc_parse/src/lexer/diagnostics.rs @@ -85,7 +85,7 @@ pub(super) fn report_suspicious_mismatch_block( } } - // Find the inner-most span candidate for final report + // Find the innermost span candidate for final report let candidate_span = matched_spans.into_iter().rev().find(|&(_, same_ident)| !same_ident).map(|(span, _)| span); |
