1 is singular, not 0. 🤦
This commit is contained in:
parent
d4f22fb0c5
commit
ac1fb0163c
|
@ -2,7 +2,7 @@
|
|||
|
||||
/// Simple function to create a pluralized string.
|
||||
pub fn plural(count: usize, singular: &str, plural: Option<&str>) -> String {
|
||||
if count == 0 {
|
||||
if count == 1 {
|
||||
return singular.to_string();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue