Skip to content

Commit 3b6256e

Browse files
jafingerhutstuarthalloway
authored andcommitted
CLJ-2295: Eliminate duplicate doc string in clojure.repl/print-doc output
Signed-off-by: Stuart Halloway <[email protected]>
1 parent 51c6d7a commit 3b6256e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/clj/clojure/repl.clj

+6-7
Original file line numberDiff line numberDiff line change
@@ -94,18 +94,17 @@ itself (not its value) is returned. The reader macro #'x expands to (var x)."}})
9494
(prn arglists))
9595
(cond
9696
special-form
97-
(do
98-
(println "Special Form")
99-
(println " " doc)
100-
(if (contains? m :url)
101-
(when url
102-
(println (str "\n Please see http://clojure.org/" url)))
103-
(println (str "\n Please see http://clojure.org/special_forms#" nm))))
97+
(println "Special Form")
10498
macro
10599
(println "Macro")
106100
spec
107101
(println "Spec"))
108102
(when doc (println " " doc))
103+
(when special-form
104+
(if (contains? m :url)
105+
(when url
106+
(println (str "\n Please see http://clojure.org/" url)))
107+
(println (str "\n Please see http://clojure.org/special_forms#" nm))))
109108
(when n
110109
(when-let [fnspec (spec/get-spec (symbol (str (ns-name n)) (name nm)))]
111110
(println "Spec")

0 commit comments

Comments
 (0)