about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorKarol Zwolak <karolzwolak7@gmail.com>2025-10-02 20:24:34 +0200
committerKarol Zwolak <karolzwolak7@gmail.com>2025-10-02 20:24:34 +0200
commitd1d7b9472a18780499162b4a91beea729bc2c13b (patch)
treeea17cce2d0f79f5a64041337c964940922804700 /compiler
parent5a8f963426c72c5bd306b2620a6c148b720217d0 (diff)
downloadrust-d1d7b9472a18780499162b4a91beea729bc2c13b.tar.gz
rust-d1d7b9472a18780499162b4a91beea729bc2c13b.zip
bring back plural 'alternatives' in suggestion message
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_parse/src/parser/diagnostics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/diagnostics.rs b/compiler/rustc_parse/src/parser/diagnostics.rs
index 5d6da609312..1cb1618e584 100644
--- a/compiler/rustc_parse/src/parser/diagnostics.rs
+++ b/compiler/rustc_parse/src/parser/diagnostics.rs
@@ -2961,7 +2961,7 @@ impl<'a> Parser<'a> {
         if let CommaRecoveryMode::EitherTupleOrPipe = rt {
             err.span_suggestion(
                 comma_span,
-                "...or a vertical bar to match on alternative",
+                "...or a vertical bar to match on alternatives",
                 " |",
                 Applicability::MachineApplicable,
             );