mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
Correct spelling (#4152)
This commit is contained in:
@ -19,7 +19,7 @@ fn handle_dots_push(string: &mut String, count: u8) {
|
||||
string.pop(); // remove last '/'
|
||||
}
|
||||
|
||||
/// Expands any occurence of more than two dots into a sequence of ../ (or ..\ on windows), e.g.,
|
||||
/// Expands any occurrence of more than two dots into a sequence of ../ (or ..\ on windows), e.g.,
|
||||
/// "..." into "../..", "...." into "../../../", etc.
|
||||
pub fn expand_ndots(path: impl AsRef<Path>) -> PathBuf {
|
||||
// Check if path is valid UTF-8 and if not, return it as it is to avoid breaking it via string
|
||||
|
Reference in New Issue
Block a user