fix: correct singular 'entry' in clear-cache replies

plural() returned "" for one, rendering '1 entr.'; return "y" so
the suffix composes to '1 entry' / '2 entries'.
This commit is contained in:
2026-08-08 00:07:27 +08:00
parent 020e2d01a3
commit d32fa969d6
+2 -2
View File
@@ -388,9 +388,9 @@ async fn execute_command(
Ok(()) Ok(())
} }
/// `""` for one, `"ies"` for anything else — "1 entry" / "2 entries". /// `"y"` for one, `"ies"` for anything else — "1 entry" / "2 entries".
fn plural(n: usize) -> &'static str { fn plural(n: usize) -> &'static str {
if n == 1 { "" } else { "ies" } if n == 1 { "y" } else { "ies" }
} }
/// For locally produced media (encoded ugoira MP4) the thumbnail URL is a /// For locally produced media (encoded ugoira MP4) the thumbnail URL is a