mirror of
https://github.com/danbulant/nushell
synced 2026-06-13 03:32:17 +00:00
4 lines
143 B
Rust
4 lines
143 B
Rust
/// Trim trailing path separator from a string
|
|
pub fn trim_trailing_slash(s: &str) -> &str {
|
|
s.trim_end_matches(std::path::is_separator)
|
|
}
|