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