Skip to main content

truncate_slug

Function truncate_slug 

pub fn truncate_slug(input: &str, max_length: usize) -> String
Expand description

Truncates a slug without leaving trailing separators when possible.