diff options
Diffstat (limited to 'cli/tools')
-rw-r--r-- | cli/tools/coverage/mod.rs | 12 | ||||
-rw-r--r-- | cli/tools/fmt.rs | 4 | ||||
-rw-r--r-- | cli/tools/repl/editor.rs | 2 | ||||
-rw-r--r-- | cli/tools/task.rs | 2 | ||||
-rw-r--r-- | cli/tools/upgrade.rs | 2 |
5 files changed, 11 insertions, 11 deletions
diff --git a/cli/tools/coverage/mod.rs b/cli/tools/coverage/mod.rs index 223bac316..c872623b8 100644 --- a/cli/tools/coverage/mod.rs +++ b/cli/tools/coverage/mod.rs @@ -132,12 +132,12 @@ impl CoverageCollector { let mut out = BufWriter::new(File::create(filepath)?); let coverage = serde_json::to_string(&script_coverage)?; - let formated_coverage = format_json(&coverage, &Default::default()) + let formatted_coverage = format_json(&coverage, &Default::default()) .ok() .flatten() .unwrap_or(coverage); - out.write_all(formated_coverage.as_bytes())?; + out.write_all(formatted_coverage.as_bytes())?; out.flush()?; } @@ -533,20 +533,20 @@ impl CoverageReporter for PrettyCoverageReporter { let mut last_line = None; for line_index in missed_lines { const WIDTH: usize = 4; - const SEPERATOR: &str = "|"; + const SEPARATOR: &str = "|"; // Put a horizontal separator between disjoint runs of lines if let Some(last_line) = last_line { if last_line + 1 != line_index { let dash = colors::gray("-".repeat(WIDTH + 1)); - println!("{}{}{}", dash, colors::gray(SEPERATOR), dash); + println!("{}{}{}", dash, colors::gray(SEPARATOR), dash); } } println!( "{:width$} {} {}", line_index + 1, - colors::gray(SEPERATOR), + colors::gray(SEPARATOR), colors::red(&lines[line_index]), width = WIDTH ); @@ -703,7 +703,7 @@ pub async fn cover_files( | MediaType::Mts | MediaType::Cts | MediaType::Tsx => { - match emitter.maybed_cached_emit(&file.specifier, &file.source) { + match emitter.maybe_cached_emit(&file.specifier, &file.source) { Some(code) => code.into(), None => { return Err(anyhow!( diff --git a/cli/tools/fmt.rs b/cli/tools/fmt.rs index d7a235b4a..e296ddab9 100644 --- a/cli/tools/fmt.rs +++ b/cli/tools/fmt.rs @@ -442,8 +442,8 @@ fn format_ensure_stable( concat!( "Formatting succeeded initially, but failed when ensuring a ", "stable format. This indicates a bug in the formatter where ", - "the text it produces is not syntatically correct. As a temporary ", - "workfaround you can ignore this file ({}).\n\n{:#}" + "the text it produces is not syntactically correct. As a temporary ", + "workaround you can ignore this file ({}).\n\n{:#}" ), file_path.display(), err, diff --git a/cli/tools/repl/editor.rs b/cli/tools/repl/editor.rs index 79467a996..759ff23d3 100644 --- a/cli/tools/repl/editor.rs +++ b/cli/tools/repl/editor.rs @@ -288,7 +288,7 @@ fn validate(input: &str) -> ValidationResult { | (Some(Token::LBrace), Token::RBrace) | (Some(Token::DollarLBrace), Token::RBrace) => {} (Some(left), _) => { - // queue up a validation error to surface once we've finished examininig the current line + // queue up a validation error to surface once we've finished examining the current line queued_validation_error = Some(ValidationResult::Invalid(Some( format!("Mismatched pairs: {left:?} is not properly closed"), ))); diff --git a/cli/tools/task.rs b/cli/tools/task.rs index 7dd7e7bc4..f99e7431c 100644 --- a/cli/tools/task.rs +++ b/cli/tools/task.rs @@ -145,7 +145,7 @@ fn get_script_with_args(script: &str, options: &CliOptions) -> String { .argv() .iter() // surround all the additional arguments in double quotes - // and santize any command substition + // and sanitize any command substitution .map(|a| format!("\"{}\"", a.replace('"', "\\\"").replace('$', "\\$"))) .collect::<Vec<_>>() .join(" "); diff --git a/cli/tools/upgrade.rs b/cli/tools/upgrade.rs index b371731c3..78ac59981 100644 --- a/cli/tools/upgrade.rs +++ b/cli/tools/upgrade.rs @@ -125,7 +125,7 @@ impl<TEnvironment: UpdateCheckerEnvironment> UpdateChecker<TEnvironment> { /// Returns the version if a new one is available and it should be prompted about. pub fn should_prompt(&self) -> Option<String> { let file = self.maybe_file.as_ref()?; - // If the current version saved is not the actualy current version of the binary + // If the current version saved is not the actually current version of the binary // It means // - We already check for a new version today // - The user have probably upgraded today |