Skip to main content

plural

Function plural 

Source
pub fn plural<'a>(count: usize, one: &'a str, many: &'a str) -> &'a str
Expand description

Pick the singular or plural form for a count.

Small, but “Unregistered 1 repositories” is the kind of thing people notice and nothing else in the codebase was doing it consistently.