diff options
| author | Karol Zwolak <karolzwolak7@gmail.com> | 2025-10-02 20:24:34 +0200 |
|---|---|---|
| committer | Karol Zwolak <karolzwolak7@gmail.com> | 2025-10-02 20:24:34 +0200 |
| commit | d1d7b9472a18780499162b4a91beea729bc2c13b (patch) | |
| tree | ea17cce2d0f79f5a64041337c964940922804700 /compiler | |
| parent | 5a8f963426c72c5bd306b2620a6c148b720217d0 (diff) | |
| download | rust-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.rs | 2 |
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, ); |
