Rollup merge of #64233 - varkor:correct-pluralisation, r=estebank

Correct pluralisation of various diagnostic messages
This commit is contained in:
Mazdak Farrokhzad
2019-09-07 08:06:11 +02:00
committed by GitHub
9 changed files with 42 additions and 22 deletions

View File

@@ -291,7 +291,7 @@ impl<'a, 'b> Context<'a, 'b> {
&format!(
"{} positional argument{} in format string, but {}",
count,
if count > 1 { "s" } else { "" },
if count != 1 { "s" } else { "" },
self.describe_num_args(),
),
);