Function slash_formatter::delete_end_slash
source · pub fn delete_end_slash<S: ?Sized + AsRef<str>>(s: &S) -> &str
Expand description
Delete an ending slash in a string except for ‘/’.
assert_eq!("path", slash_formatter::delete_end_slash("path/"));