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

Function format_count

atomic-cli/src/commands/agent/attest.rs:652–658  ·  view source on GitHub ↗
(n: usize, word: &str)

Source from the content-addressed store, hash-verified

650}
651
652fn format_count(n: usize, word: &str) -> String {
653 if n == 1 {
654 format!("{} {}", n, word)
655 } else {
656 format!("{} {}s", n, word)
657 }
658}
659
660// Tests
661

Callers 1

print_summaryMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected