MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / count

Function count

atomic-cli/src/commands/sidecars.rs:151–157  ·  view source on GitHub ↗
(n: usize, singular: &str)

Source from the content-addressed store, hash-verified

149}
150
151fn count(n: usize, singular: &str) -> String {
152 if n == 1 {
153 format!("{} {}", n, singular)
154 } else {
155 format!("{} {}s", n, singular)
156 }
157}
158
159#[cfg(test)]
160mod tests {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected