Function remove_suffix

Source
pub fn remove_suffix<'a>(string: &'a str, suffix: &str) -> &'a str