Skip to content

Commit 2de9eb9

Browse files
committed
munging: fix comment typos
1 parent ebb3682 commit 2de9eb9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/lib/devtools/munging.cljs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474

7575
(defn char-to-subscript
7676
"Given a character with a single digit converts it into a subscript character.
77-
Zero chracter maps to unicode 'SUBSCRIPT ZERO' (U+2080)."
77+
Zero character maps to unicode 'SUBSCRIPT ZERO' (U+2080)."
7878
[char]
7979
{:pre [(string? char)
8080
(= (count char) 1)]}
@@ -91,7 +91,7 @@
9191

9292
(defn char-to-superscript
9393
"Given a character with a single digit converts it into a superscript character.
94-
Zero chracter maps to unicode 'SUPERSCRIPT ZERO' (U+2070)."
94+
Zero character maps to unicode 'SUPERSCRIPT ZERO' (U+2070)."
9595
[char]
9696
{:pre [(string? char)
9797
(= (count char) 1)]}
@@ -124,7 +124,7 @@
124124
"Given a function source code parses out [name args]. Note that both strings are still munged.
125125
Suitable for further processing.
126126
127-
For exampe for input below the function will return [\"devtools_sample$core$hello\" \"name, unused_param\"]:
127+
For example for input below the function will return [\"devtools_sample$core$hello\" \"name, unused_param\"]:
128128
129129
function devtools_sample$core$hello(name, unused_param){
130130
return [cljs.core.str(\"hello, \"),cljs.core.str(name),cljs.core.str(\"!\")].join('');
@@ -162,7 +162,7 @@
162162
; -- demunging --------------------------------------------------------------------------------------------------------------
163163

164164
(defn dollar-preserving-demunge
165-
"Standard cljs.core/demunge is too agresive in replacing dollars.
165+
"Standard cljs.core/demunge is too aggressive in replacing dollars.
166166
This wrapper function works around it by leaving dollars intact."
167167
[munged-name]
168168
(-> munged-name
@@ -202,9 +202,9 @@
202202
(defn detect-namespace-prefix
203203
"Given a name broken into namespace parts returns [detected-ns remaining-parts],
204204
where detected-ns is a string representing longest detected existing namespace and
205-
remaining-parts is a vector of remaing input parts not included in the detected-ns concatenation.
205+
remaining-parts is a vector of remaining input parts not included in the detected-ns concatenation.
206206
207-
For given input [\"cljs\" \"core\" \"first\"] returns [\"cljs.core\" [\"first\"]] (asumming cljs.core exists)"
207+
For given input [\"cljs\" \"core\" \"first\"] returns [\"cljs.core\" [\"first\"]] (assuming cljs.core exists)"
208208
[tokens & [ns-detector]]
209209
(let [effective-detector (or ns-detector ns-exists?)]
210210
(loop [name-tokens []
@@ -255,7 +255,7 @@
255255
tokens (vec (.split munged-name #"[$.]"))
256256
[tokens arity] (strip-arity tokens)
257257
[fn-ns tokens] (detect-namespace-prefix tokens effective-detector)
258-
; remianing parts contains function name,
258+
; remaining parts contains function name,
259259
; but may be optionally followed by protocol namespace, protocol name and protocol method
260260
[fn-name-tokens protocol-ns protocol-name protocol-method-tokens] (parse-protocol tokens effective-detector)
261261
fn-name (string/join "$" fn-name-tokens)
@@ -304,7 +304,7 @@
304304
"Given a Javascript function object tries to retrieve [ns name & args] as in parse-fn-info (on best effort basis).
305305
306306
The difference from parse-fn-info is that this function prefers to read args from arities if available.
307-
It recurses arbitrary deep following IFn protocol leads.
307+
It recurse arbitrary deep following IFn protocol leads.
308308
309309
If we hit multi-arity situation in leaf, we don't attempt to list arguments and return ::multi-arity placeholder instead.
310310
@@ -337,7 +337,7 @@
337337

338338
(defn humanize-name
339339
"Given a name and intermediate state. Convert name to a human readable version by keeping human readable prefix with
340-
optional subscribt postfix and store it in ::result. Subscript number is picked based on state. State keeps track of
340+
optional subscript postfix and store it in ::result. Subscript number is picked based on state. State keeps track of
341341
previously assigned subscripts. Returns a new state."
342342
[state name]
343343
(let [index (find-index-of-human-prefix name)

0 commit comments

Comments
 (0)