From ac1fb0163c32835e0969640745eee3dcaab74a86 Mon Sep 17 00:00:00 2001 From: Bauke Date: Tue, 1 Nov 2022 12:27:01 +0100 Subject: [PATCH] =?UTF-8?q?1=20is=20singular,=20not=200.=20=F0=9F=A4=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hooked-cli/source/utilities.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooked-cli/source/utilities.rs b/hooked-cli/source/utilities.rs index 42adfb8..3d8cada 100644 --- a/hooked-cli/source/utilities.rs +++ b/hooked-cli/source/utilities.rs @@ -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(); }