Function slash_formatter::delete_end_file_separator[][src]

pub fn delete_end_file_separator<S: ?Sized + AsRef<str>>(s: &S) -> &str

Delete an ending FILE_SEPARATOR in a string except for just FILE_SEPARATOR.

extern crate slash_formatter;

assert_eq!(
    "path",
    slash_formatter::delete_end_file_separator(concat!(
        "path",
        slash_formatter::file_separator!()
    ))
);