Skip to content

Commit

Permalink
Use the right syntax for refer
Browse files Browse the repository at this point in the history
Dumb mistake. Assumed refer syntax was just like require, include, import.

Fixes trptcolin#21
  • Loading branch information
trptcolin committed Feb 8, 2012
1 parent 9a5f615 commit f310de7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clj/reply/initialization.clj
Expand Up @@ -43,8 +43,8 @@

(use '[clojure.repl :only ~'[source apropos dir]])
; doc and find-doc live in clojure.core in 1.2
(when (ns-resolve 'clojure.repl 'pst)
(refer '[clojure.repl :only [pst doc find-doc]]))
(when (ns-resolve '~'clojure.repl '~'pst)
(refer 'clojure.repl :only '~'[pst doc find-doc]))

(use '[clojure.java.javadoc :only ~'[javadoc]])
(use '[clojure.pprint :only ~'[pp pprint]])
Expand Down

0 comments on commit f310de7

Please sign in to comment.