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