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