Support other types of pluralization in pluralize macro
This commit is contained in:
parent
bce19cf7f1
commit
3bf9124f14
8 changed files with 26 additions and 23 deletions
|
@ -1410,7 +1410,7 @@ impl CheckAttrVisitor<'_> {
|
|||
span,
|
||||
format!(
|
||||
"there {} only {} argument{}",
|
||||
if arg_count != 1 { "are" } else { "is" },
|
||||
pluralize!("is", arg_count),
|
||||
arg_count,
|
||||
pluralize!(arg_count)
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue