From 3ee2fc60f9a1cda4854dbf62b990e68f3be2a70f Mon Sep 17 00:00:00 2001 From: geekvest <126322776+geekvest@users.noreply.github.com> Date: Sun, 3 Mar 2024 20:28:56 +0800 Subject: [PATCH] Fix typos in comments (#12052) # Description Fix typos in comments # User-Facing Changes # Tests + Formatting # After Submitting Signed-off-by: geekvest --- crates/nu-parser/src/parse_keywords.rs | 2 +- crates/nu-path/src/dots.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nu-parser/src/parse_keywords.rs b/crates/nu-parser/src/parse_keywords.rs index 59fa979b09..68915d58c8 100644 --- a/crates/nu-parser/src/parse_keywords.rs +++ b/crates/nu-parser/src/parse_keywords.rs @@ -3906,7 +3906,7 @@ fn detect_params_in_name( } } -/// Run has_flag_const and and push possible error to working_set +/// Run has_flag_const and push possible error to working_set fn has_flag_const(working_set: &mut StateWorkingSet, call: &Call, name: &str) -> Result { call.has_flag_const(working_set, name).map_err(|err| { working_set.error(err.wrap(working_set, call.span())); diff --git a/crates/nu-path/src/dots.rs b/crates/nu-path/src/dots.rs index 72b96ffe85..b503744a92 100644 --- a/crates/nu-path/src/dots.rs +++ b/crates/nu-path/src/dots.rs @@ -77,7 +77,7 @@ pub fn expand_ndots(path: impl AsRef) -> PathBuf { dots_count = 0; } else { // if at a path component boundary a secment consists of not only dots - // don't expand the dots and only append the the appropriate number of . + // don't expand the dots and only append the appropriate number of . while dots_count > 0 { expanded.push('.'); dots_count -= 1;