diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-09-07 08:06:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-07 08:06:11 +0200 |
| commit | d5caeac0964c0ce23e38e1bf75706fedbf1cd32c (patch) | |
| tree | 0ae5ee3328672bf878bc4dcd1f9d00776374948b /src/libsyntax_ext | |
| parent | 84cb3529b627e8ae034237156c04bdad84ea8b61 (diff) | |
| parent | 0b97726e6c524d2cc0de4c2f5b1284eca010a7b2 (diff) | |
| download | rust-d5caeac0964c0ce23e38e1bf75706fedbf1cd32c.tar.gz rust-d5caeac0964c0ce23e38e1bf75706fedbf1cd32c.zip | |
Rollup merge of #64233 - varkor:correct-pluralisation, r=estebank
Correct pluralisation of various diagnostic messages
Diffstat (limited to 'src/libsyntax_ext')
| -rw-r--r-- | src/libsyntax_ext/format.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax_ext/format.rs b/src/libsyntax_ext/format.rs index e29f12c50c5..dec84c82862 100644 --- a/src/libsyntax_ext/format.rs +++ b/src/libsyntax_ext/format.rs @@ -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(), ), ); |
