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