Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/atomicdotdev/atomic
/ format_count
Function
format_count
atomic-cli/src/commands/agent/attest.rs:648–654 ·
view source on GitHub ↗
(n: usize, word: &str)
Source
from the content-addressed store, hash-verified
646
}
647
648
fn format_count(n: usize, word: &str) -> String {
649
if n == 1 {
650
format!(
"{} {}"
, n, word)
651
} else {
652
format!(
"{} {}s"
, n, word)
653
}
654
}
655
656
// Tests
657
Callers
1
print_summary
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected