Function slash_formatter::delete_start_slash [−][src]
pub fn delete_start_slash<S: ?Sized + AsRef<str>>(s: &S) -> &str
Delete a starting slash in a string except for ‘/’.
extern crate slash_formatter; assert_eq!("path", slash_formatter::delete_start_slash("/path"));