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() {