pub fn delete_end_file_separator_in_place(s: &mut String)
Expand description
Delete an ending FILE_SEPARATOR
in a string except for just FILE_SEPARATOR
.
let mut s =
String::from(concat!("path", slash_formatter::file_separator!()));
slash_formatter::delete_end_file_separator_in_place(&mut s);
assert_eq!("path", s);