Skip to content

Commit 6109d41

Browse files
tomfaulhaberrichhickey
authored andcommitted
Slight clean-ups to a few doc strings
Signed-off-by: Rich Hickey <[email protected]>
1 parent 3d8c97a commit 6109d41

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

src/clj/clojure/core.clj

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,8 @@
530530
[x] (. clojure.lang.Delay (force x)))
531531

532532
(defmacro if-not
533-
"Evaluates test. If logical false, evaluates and returns then expr, otherwise else expr, if supplied, else nil."
533+
"Evaluates test. If logical false, evaluates and returns then expr,
534+
otherwise else expr, if supplied, else nil."
534535
([test then] `(if-not ~test ~then nil))
535536
([test then else]
536537
`(if (not ~test) ~then ~else)))
@@ -1154,12 +1155,13 @@
11541155
`(. ~(with-meta multifn {:tag 'clojure.lang.MultiFn}) addMethod ~dispatch-val (fn ~@fn-tail)))
11551156

11561157
(defn remove-method
1157-
"Removes the method of multimethod associated with dispatch-value."
1158+
"Removes the method of multimethod associated with dispatch-value."
11581159
[#^clojure.lang.MultiFn multifn dispatch-val]
11591160
(. multifn removeMethod dispatch-val))
11601161

11611162
(defn prefer-method
1162-
"Causes the multimethod to prefer matches of dispatch-val-x over dispatch-val-y when there is a conflict"
1163+
"Causes the multimethod to prefer matches of dispatch-val-x over dispatch-val-y
1164+
when there is a conflict"
11631165
[#^clojure.lang.MultiFn multifn dispatch-val-x dispatch-val-y]
11641166
(. multifn preferMethod dispatch-val-x dispatch-val-y))
11651167

@@ -1189,7 +1191,8 @@
11891191
(defmacro if-let
11901192
"bindings => binding-form test
11911193
1192-
If test is true, evaluates then with binding-form bound to the value of test, if not, yields else"
1194+
If test is true, evaluates then with binding-form bound to the value of
1195+
test, if not, yields else"
11931196
([bindings then]
11941197
`(if-let ~bindings ~then nil))
11951198
([bindings then else & oldform]
@@ -3504,8 +3507,9 @@
35043507

35053508
(defmacro amap
35063509
"Maps an expression across an array a, using an index named idx, and
3507-
return value named ret, initialized to a clone of a, then setting each element of
3508-
ret to the evaluation of expr, returning the new array ret."
3510+
return value named ret, initialized to a clone of a, then setting
3511+
each element of ret to the evaluation of expr, returning the new
3512+
array ret."
35093513
[a idx ret expr]
35103514
`(let [a# ~a
35113515
~ret (aclone a#)]
@@ -3518,8 +3522,8 @@
35183522

35193523
(defmacro areduce
35203524
"Reduces an expression across an array a, using an index named idx,
3521-
and return value named ret, initialized to init, setting ret to the evaluation of expr at
3522-
each step, returning ret."
3525+
and return value named ret, initialized to init, setting ret to the
3526+
evaluation of expr at each step, returning ret."
35233527
[a idx ret init expr]
35243528
`(let [a# ~a]
35253529
(loop [~idx (int 0) ~ret ~init]

src/clj/clojure/genclass.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,8 @@
577577
578578
:impl-ns name
579579
580-
Default: the name of the current ns. Implementations of methods will be looked up in this namespace.
580+
Default: the name of the current ns. Implementations of methods will be
581+
looked up in this namespace.
581582
582583
:load-impl-ns boolean
583584

0 commit comments

Comments
 (0)