summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2008-09-18 00:49:28 +0000
committerRich Hickey <richhickey@gmail.com>2008-09-18 00:49:28 +0000
commit6bb0a315870e33237a484cb9062e51ea81aa76a5 (patch)
tree2e0d390c727a36dbc40a788711b123b8f7a77896 /src
parentedf6f303654ae113d733ee7347200143c7fdd2de (diff)
Fixed doc for descendants
Diffstat (limited to 'src')
-rw-r--r--src/clj/clojure/boot.clj9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/clj/clojure/boot.clj b/src/clj/clojure/boot.clj
index 921a22df..b43668cd 100644
--- a/src/clj/clojure/boot.clj
+++ b/src/clj/clojure/boot.clj
@@ -2830,10 +2830,11 @@
ta)))))
(defn descendants
- "Returns the immediate and indirect children of tag, either via a Java type
- inheritance relationship or a relationship established via derive. h
- must be a hierarchy obtained from make-hierarchy, if not supplied
- defaults to the global hierarchy"
+ "Returns the immediate and indirect children of tag, through a
+ relationship established via derive. h must be a hierarchy obtained
+ from make-hierarchy, if not supplied defaults to the global
+ hierarchy. Note: does not work on Java type inheritance
+ relationships."
([tag] (descendants global-hierarchy tag))
([h tag] (if (class? tag)
(throw (java.lang.UnsupportedOperationException. "Can't get descendants of classes"))