Skip to content

Commit db896ff

Browse files
mfikesdnolen
authored andcommitted
CLJS-1728: Update doc for ns for new :rename capability
1 parent 8c6bbf8 commit db896ff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/clojure/cljs/repl.cljc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,11 +1041,13 @@
10411041
:doc "You must currently use the ns form only with the following caveats
10421042
10431043
* You must use the :only form of :use
1044-
* :require supports :as and :refer
1045-
- both options can be skipped
1044+
* :require supports :as, :refer, and :rename
1045+
- all options can be skipped
10461046
- in this case a symbol can be used as a libspec directly
10471047
- that is, (:require lib.foo) and (:require [lib.foo]) are both
10481048
supported and mean the same thing
1049+
- :rename specifies a map from referred var names to different
1050+
symbols (and can be used to prevent clashes)
10491051
- prefix lists are not supported
10501052
* The only option for :refer-clojure is :exclude
10511053
* :import is available for importing Google Closure classes

0 commit comments

Comments
 (0)