Skip to content

Commit a61a7ab

Browse files
maaclbronsa
authored andcommitted
TANAL-131 fixed typos and grammar
1 parent 3e68fce commit a61a7ab

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/main/clojure/clojure/tools/analyzer/ast/query.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
[clojure.tools.analyzer.utils :refer [compile-if]]))
1313

1414
(defn query-map
15-
"Transoforms a Datomic query from its vector representation to its map one.
15+
"Transforms a Datomic query from its vector representation to its map one.
1616
If the given query is already in its map representation, the original query
1717
is returned."
1818
[query]
@@ -73,7 +73,7 @@
7373

7474
(defn db
7575
"Given a list of ASTs, returns a representation of those
76-
that can be used as a database in a Datomic Datalog query"
76+
that can be used as a database in a Datomic Datalog query."
7777
[asts]
7878
(mapcat ast/ast->eav asts))
7979

src/main/clojure/clojure/tools/analyzer/passes.clj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[clojure.tools.analyzer.utils :refer [update-vals]]))
55

66
(defn ^:private has-deps?
7-
"Returns true if the pass has some dependencies"
7+
"Returns true if the pass has any dependencies"
88
[pass]
99
(seq (:dependencies pass)))
1010

@@ -15,7 +15,7 @@
1515

1616
(defn ^:private remove-pass
1717
"Takes a set of pass-infos and a pass, and removes the pass from the set of
18-
pass-infos, updating :dependencies and :dependants aswell"
18+
pass-infos, updating :dependencies and :dependants as well."
1919
[passes pass]
2020
(indicize (reduce (fn [m p] (conj m (-> p (update-in [:dependencies] disj pass)
2121
(update-in [:dependants] disj pass))))
@@ -45,7 +45,7 @@
4545

4646
(defn calculate-deps
4747
"Takes a map of pass-name -> pass-info and adds to each pass-info :dependencies and
48-
:dependants info, which also contain the transitive dependencies"
48+
:dependants info, which also contains the transitive dependencies"
4949
[passes]
5050
(let [passes (desugar-deps passes)
5151
dependencies (reduce-kv (fn [deps pname {:keys [depends]}]
@@ -191,7 +191,7 @@
191191
- :any if the pass can be composed with other passes in both a prewalk
192192
or a postwalk
193193
* :affects a set of Vars, this pass must be the last in the same tree traversal that all
194-
the specified passes must partecipate in
194+
the specified passes must participate in
195195
This pass must take a function as argument and return the actual pass, the
196196
argument represents the reified tree traversal which the pass can use to
197197
control a recursive traversal, implies :depends

0 commit comments

Comments
 (0)