We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe5f591 commit 5dce0e6Copy full SHA for 5dce0e6
compiler/rustc_lint_defs/src/lib.rs
@@ -23,8 +23,9 @@ pub mod builtin;
23
24
#[macro_export]
25
macro_rules! pluralize {
26
+ // Pluralize based on count (e.g., apples)
27
($x:expr) => {
- if $x != 1 { "s" } else { "" }
28
+ if $x == 1 { "" } else { "s" }
29
};
30
("has", $x:expr) => {
31
if $x == 1 { "has" } else { "have" }
0 commit comments