diff options
author | unknown <lpesonen@.emea.progress.com> | 2009-09-11 15:53:02 +0100 |
---|---|---|
committer | Chouser <chouser@n01se.net> | 2009-09-28 12:58:08 -0400 |
commit | a2d986693592e321e7978f914c3ba4f563da6af3 (patch) | |
tree | e26cc50733b35a42349881c6bee122f8abc1e73a | |
parent | a780e1d096f6a99cb974568a0a6d76d4e996e585 (diff) |
Fix compare doc defect - fixes #189
Signed-off-by: Chouser <chouser@n01se.net>
-rw-r--r-- | src/clj/clojure/core.clj | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/clj/clojure/core.clj b/src/clj/clojure/core.clj index 42c359ee..8a00c6d2 100644 --- a/src/clj/clojure/core.clj +++ b/src/clj/clojure/core.clj @@ -542,10 +542,11 @@ (defn compare - "Comparator. Returns 0 if x equals y, -1 if x is logically 'less - than' y, else 1. Same as Java x.compareTo(y) except it also works - for nil, and compares numbers and collections in a type-independent - manner. x must implement Comparable" + "Comparator. Returns a negative number, zero, or a positive number + when x is logically 'less than', 'equal to', or 'greater than' + y. Same as Java x.compareTo(y) except it also works for nil, and + compares numbers and collections in a type-independent manner. x + must implement Comparable" {:tag Integer :inline (fn [x y] `(. clojure.lang.Util compare ~x ~y))} [x y] (. clojure.lang.Util (compare x y))) |