From 93ae0e91db1ac75f808de050edd05371b6e35465 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Tue, 12 Mar 2024 23:08:39 -0700 Subject: [PATCH] Fix typos --- src/diff/graph.rs | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/diff/graph.rs b/src/diff/graph.rs index 5192e613e1..250b747fbc 100644 --- a/src/diff/graph.rs +++ b/src/diff/graph.rs @@ -403,7 +403,7 @@ fn allocate_if_new<'s, 'b>( /// Does this node look like punctuation? /// -/// This check is deliberately conservative, becuase it's hard to +/// This check is deliberately conservative, because it's hard to /// accurately recognise punctuation in a language-agnostic way. fn looks_like_punctuation(node: &Syntax) -> bool { match node { diff --git a/src/main.rs b/src/main.rs index 4ab0c3b545..9f58470d54 100644 --- a/src/main.rs +++ b/src/main.rs @@ -107,7 +107,7 @@ fn reset_sigpipe() { /// The entrypoint. fn main() { pretty_env_logger::try_init_timed_custom_env("DFT_LOG") - .expect("The logger has not been previously initalized"); + .expect("The logger has not been previously initialized"); reset_sigpipe(); match options::parse_args() {