maclean 1.0.0

Find and reclaim disk space on macOS
1
2
3
4
5
6
7
8
/// "1 item", "3 items". Plain English beats "item(s)" everywhere it appears.
pub fn plural(count: usize, word: &str) -> String {
    if count == 1 {
        format!("1 {word}")
    } else {
        format!("{count} {word}s")
    }
}