Skip to main content

format_words

Function format_words 

Source
pub fn format_words(words: i64) -> String
Expand description

Format a word count compactly: 1234 → “1.2k”, 1500000 → “1.5M”.