Format a count with singular/plural suffix.
(count: usize, singular: &str)
| 212 | |
| 213 | /// Format a count with singular/plural suffix. |
| 214 | pub(crate) fn format_count(count: usize, singular: &str) -> String { |
| 215 | if count == 1 { |
| 216 | format!("{} {}", count, singular) |
| 217 | } else { |
| 218 | format!("{} {}s", count, singular) |
| 219 | } |
| 220 | } |
| 221 | |
| 222 | /// Check if stdin is a terminal (for interactive prompts). |
| 223 | /// Convert an atomic_identity::Identity to atomic_core::change::Author. |
nothing calls this directly
no outgoing calls
no test coverage detected