Skip to main content

reading_time

Function reading_time 

Source
pub fn reading_time(text: &str) -> ReadingTime
Expand description

Estimate the reading time of text at 200 words per minute.

assert_eq!(reading_time("one two three").words, 3);