[−][src]Function slash_formatter::delete_end_file_separator_build_in_place
pub fn delete_end_file_separator_build_in_place(s: &mut String)
Delete an ending FILE_SEPARATOR_ON_WORKSTATION
in a string except for just FILE_SEPARATOR_ON_WORKSTATION
.
extern crate slash_formatter; 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);