Skip to content

Commit 20ab0d1

Browse files
mfikesswannodette
authored andcommitted
CLJS-1527: Doc for *print-length* copy of *print-dup*
Copy over docstring from Clojure.
1 parent 71b9fa4 commit 20ab0d1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,13 @@
104104

105105
(def
106106
^{:dynamic true
107-
:doc "When set to logical true, objects will be printed in a way that preserves
108-
their type when read in later.
109-
110-
Defaults to false."
107+
:doc "*print-length* controls how many items of each collection the
108+
printer will print. If it is bound to logical false, there is no
109+
limit. Otherwise, it must be bound to an integer indicating the maximum
110+
number of items of each collection to print. If a collection contains
111+
more items, the printer will print items up to the limit followed by
112+
'...' to represent the remaining items. The root binding is nil
113+
indicating no limit."
111114
:jsdoc ["@type {null|number}"]}
112115
*print-length* nil)
113116

0 commit comments

Comments
 (0)