Function slash_formatter::delete_start_slash_owned
source · Expand description
Delete an starting slash in a string except for ‘/’.
extern crate slash_formatter;
let s = String::from("/path");
let s = slash_formatter::delete_start_slash_owned(s);
assert_eq!("path", s);