Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
terop committed Sep 5, 2023
1 parent 93a9ce5 commit c46e970
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/kibit/check.clj
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@

(defn unique-alt?
"A 'check guard' that only returns a result if the
alternative is different than the original expresion"
alternative is different than the original expression"
[simplify-map]
(let [{:keys [expr alt]} simplify-map]
(when-not (= alt expr)
Expand Down Expand Up @@ -162,7 +162,7 @@
(with-monkeypatches kibit-redefs
(->> expr simplify-fn (build-simplify-map expr) guard)))

;; The default resolution is overriden via the `merge`
;; The default resolution is overridden via the `merge`
(defn check-expr
""
[expr & kw-opts]
Expand Down
2 changes: 1 addition & 1 deletion src/kibit/driver.clj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"The reporter used when rendering suggestions"
:default "text"]
["-e" "--replace"
"Automatially apply suggestions to source file"
"Automatically apply suggestions to source file"
:flag true]
["-i" "--interactive"
"Interactively prompt before replacing suggestions in source file (Requires `--replace`)"
Expand Down
2 changes: 1 addition & 1 deletion src/kibit/monkeypatch.clj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{#'c.c.l/tree-term? tree-term?})

(defmacro with-monkeypatches
"Builds a try/finally which captures Var bindings (and ^:macro tags) comming in, creates new Var
"Builds a try/finally which captures Var bindings (and ^:macro tags) coming in, creates new Var
bindings within the try and in the finally restores the original bindings. This allows users to
establish stack-local patched contexts."
{:style/indent [1]}
Expand Down
2 changes: 1 addition & 1 deletion src/kibit/rules/arithmetic.clj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[(* ?x (* . ?xs)) (* ?x . ?xs)]
[(+ ?x (+ . ?xs)) (+ ?x . ?xs)]

;;trivial identites
;;trivial identities
[(+ ?x 0) ?x]
[(- ?x 0) ?x]
[(* ?x 1) ?x]
Expand Down

0 comments on commit c46e970

Please sign in to comment.