diff options
| author | varkor <github@varkor.com> | 2019-09-06 19:21:20 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2019-09-06 19:21:20 +0100 |
| commit | f6481ed1c31d2a3c43fab73e58901f7c25360fcb (patch) | |
| tree | 734024c70db95eceafedd99b2011bb05b777bee7 /src/libsyntax_ext | |
| parent | 4894123d21ed4b153a2e5c32c0870cb2d97f9b46 (diff) | |
| download | rust-f6481ed1c31d2a3c43fab73e58901f7c25360fcb.tar.gz rust-f6481ed1c31d2a3c43fab73e58901f7c25360fcb.zip | |
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(), ), ); |
