let plural = match cases.len() {
1.. => "s",
0 => "",
};
;P let plural = match cases.len() {
1.. => "s",
0 => "",
};
;P let plural = match cases.len() {
0 | 2.. => "s",
1 => "",
};
or something (though to be fair the original code snippet also handled "0" incorrectly -- should be "cases.len() != 1").