|
|
|
|
|
by cyphar
1862 days ago
|
|
That's not the correct plural rule in English, you'd want 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"). |
|