summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Faulhaber <git_net@infolace.com>2009-12-17 10:21:52 -0800
committerRich Hickey <richhickey@gmail.com>2009-12-17 13:35:18 -0500
commit6109d41a975bf24b17681342591116a9897e4a27 (patch)
tree0e2caad29d558b07d9b382f0689ae5434d2c2390
parent3d8c97a939e5779553c53f47696f7445cf378583 (diff)
Slight clean-ups to a few doc strings
Signed-off-by: Rich Hickey <richhickey@gmail.com>
-rw-r--r--src/clj/clojure/core.clj20
-rw-r--r--src/clj/clojure/genclass.clj3
2 files changed, 14 insertions, 9 deletions
diff --git a/src/clj/clojure/core.clj b/src/clj/clojure/core.clj
index 7433adb3..3ab5313b 100644
--- a/src/clj/clojure/core.clj
+++ b/src/clj/clojure/core.clj
@@ -530,7 +530,8 @@
[x] (. clojure.lang.Delay (force x)))
(defmacro if-not
- "Evaluates test. If logical false, evaluates and returns then expr, otherwise else expr, if supplied, else nil."
+ "Evaluates test. If logical false, evaluates and returns then expr,
+ otherwise else expr, if supplied, else nil."
([test then] `(if-not ~test ~then nil))
([test then else]
`(if (not ~test) ~then ~else)))
@@ -1154,12 +1155,13 @@
`(. ~(with-meta multifn {:tag 'clojure.lang.MultiFn}) addMethod ~dispatch-val (fn ~@fn-tail)))
(defn remove-method
- "Removes the method of multimethod associated with dispatch-value."
+ "Removes the method of multimethod associated with dispatch-value."
[#^clojure.lang.MultiFn multifn dispatch-val]
(. multifn removeMethod dispatch-val))
(defn prefer-method
- "Causes the multimethod to prefer matches of dispatch-val-x over dispatch-val-y when there is a conflict"
+ "Causes the multimethod to prefer matches of dispatch-val-x over dispatch-val-y
+ when there is a conflict"
[#^clojure.lang.MultiFn multifn dispatch-val-x dispatch-val-y]
(. multifn preferMethod dispatch-val-x dispatch-val-y))
@@ -1189,7 +1191,8 @@
(defmacro if-let
"bindings => binding-form test
- If test is true, evaluates then with binding-form bound to the value of test, if not, yields else"
+ If test is true, evaluates then with binding-form bound to the value of
+ test, if not, yields else"
([bindings then]
`(if-let ~bindings ~then nil))
([bindings then else & oldform]
@@ -3504,8 +3507,9 @@
(defmacro amap
"Maps an expression across an array a, using an index named idx, and
- return value named ret, initialized to a clone of a, then setting each element of
- ret to the evaluation of expr, returning the new array ret."
+ return value named ret, initialized to a clone of a, then setting
+ each element of ret to the evaluation of expr, returning the new
+ array ret."
[a idx ret expr]
`(let [a# ~a
~ret (aclone a#)]
@@ -3518,8 +3522,8 @@
(defmacro areduce
"Reduces an expression across an array a, using an index named idx,
- and return value named ret, initialized to init, setting ret to the evaluation of expr at
- each step, returning ret."
+ and return value named ret, initialized to init, setting ret to the
+ evaluation of expr at each step, returning ret."
[a idx ret init expr]
`(let [a# ~a]
(loop [~idx (int 0) ~ret ~init]
diff --git a/src/clj/clojure/genclass.clj b/src/clj/clojure/genclass.clj
index 1c61e40b..b1c1a785 100644
--- a/src/clj/clojure/genclass.clj
+++ b/src/clj/clojure/genclass.clj
@@ -577,7 +577,8 @@
:impl-ns name
- Default: the name of the current ns. Implementations of methods will be looked up in this namespace.
+ Default: the name of the current ns. Implementations of methods will be
+ looked up in this namespace.
:load-impl-ns boolean