Function slash_formatter::add_end_file_separator_in_place
source · pub fn add_end_file_separator_in_place(s: &mut String)
Expand description
Add an ending FILE_SEPARATOR
into a string.
let mut s = String::from("path");
slash_formatter::add_end_file_separator_in_place(&mut s);
assert_eq!(concat!("path", slash_formatter::file_separator!()), s);