add "was" to pluralize macro and use it
This commit is contained in:
parent
f847261478
commit
eb86daa138
5 changed files with 27 additions and 21 deletions
|
@ -26,6 +26,9 @@ macro_rules! pluralize {
|
|||
("is", $x:expr) => {
|
||||
if $x == 1 { "is" } else { "are" }
|
||||
};
|
||||
("was", $x:expr) => {
|
||||
if $x == 1 { "was" } else { "were" }
|
||||
};
|
||||
("this", $x:expr) => {
|
||||
if $x == 1 { "this" } else { "these" }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue