Function slash_formatter::delete_start_slash_in_place
source · pub fn delete_start_slash_in_place(s: &mut String)
Expand description
Delete a starting slash in a string except for ‘/’.
let mut s = String::from("/path");
slash_formatter::delete_start_slash_in_place(&mut s);
assert_eq!("path", s);