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:796–802 ·
view source on GitHub ↗
(n: usize, word: &str)
Source
from the content-addressed store, hash-verified
794
}
795
796
fn format_count(n: usize, word: &str) -> String {
797
if n == 1 {
798
format!(
"{} {}"
, n, word)
799
} else {
800
format!(
"{} {}s"
, n, word)
801
}
802
}
803
804
// Tests
805
Callers
1
print_summary
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected