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:652–658 ·
view source on GitHub ↗
(n: usize, word: &str)
Source
from the content-addressed store, hash-verified
650
}
651
652
fn 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_summary
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected