Function slash_formatter::add_end_slash_in_place
source · pub fn add_end_slash_in_place(s: &mut String)
Expand description
Add an ending slash into a string.
let mut s = String::from("path");
slash_formatter::add_end_slash_in_place(&mut s);
assert_eq!("path/", s);