1
Fork 0

add "was" to pluralize macro and use it

This commit is contained in:
Takayuki Maeda 2022-06-22 14:56:40 +09:00
parent f847261478
commit eb86daa138
5 changed files with 27 additions and 21 deletions

View file

@ -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" }
};