1 is singular, not 0. 🤦

This commit is contained in:
Bauke 2022-11-01 12:27:01 +01:00
parent d4f22fb0c5
commit ac1fb0163c
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}