Skip to content

Commit bc2b580

Browse files
committed
Add missing arity
1 parent f0bda7b commit bc2b580

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/orchard/clojuredocs.clj

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,12 @@
9898
"Resolve `sym` in the context of `ns` and look up the documentation
9999
for the resulting var."
100100
{:added "0.5.0"}
101-
[ns sym]
102-
(if (special-symbol? sym)
103-
(find-doc "clojure.core" (str sym))
104-
(-> (ns-resolve ns sym) var-name get-doc)))
101+
([ns sym]
102+
(resolve-and-find-doc ns sym default-edn-file-url))
103+
([ns sym export-edn-url]
104+
(if (special-symbol? sym)
105+
(find-doc "clojure.core" (str sym) export-edn-url)
106+
(-> (ns-resolve ns sym) var-name get-doc))))
105107

106108
(defn- kw-to-sym [kw]
107109
(symbol (subs (str kw) 1)))

0 commit comments

Comments
 (0)