about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/lexer/diagnostics.rs
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2024-10-23 02:45:24 -0700
committerJosh Triplett <josh@joshtriplett.org>2024-10-23 02:45:24 -0700
commitecdc2441b6a96603dd7188652adf86e06c2dc513 (patch)
treeba13d10e763f5bc6ec593c7551644b632a50cfa3 /compiler/rustc_parse/src/lexer/diagnostics.rs
parent9abfcb49002b82f46ad66ceb0b26cee8be2dc658 (diff)
downloadrust-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.rs2
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);