From 1f075b56f8d727e4e1b924f8a4e464522fc26abc Mon Sep 17 00:00:00 2001 From: Antonio Cunei Date: Wed, 4 Nov 2009 17:33:41 +0000 Subject: Clarification to scaladoc comments for "sort". --- src/library/scala/collection/SeqLike.scala | 6 +++--- src/library/scala/collection/immutable/List.scala | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/library/scala/collection/SeqLike.scala b/src/library/scala/collection/SeqLike.scala index 3c8eaec9a2..3b7efd11d2 100644 --- a/src/library/scala/collection/SeqLike.scala +++ b/src/library/scala/collection/SeqLike.scala @@ -522,9 +522,9 @@ trait SeqLike[+A, +Repr] extends IterableLike[A, Repr] { self => } /** Sort the sequence according to the comparison function - * <(e1: a, e2: a) => Boolean, - * which should be true iff e1 is smaller than - * e2. + * lt(e1: a, e2: a) => Boolean, + * which should be true iff e1 precedes + * e2 in the desired ordering. * The sort is stable. That is elements that are equal wrt `lt` appear in the * same order in the sorted sequence as in the original. * diff --git a/src/library/scala/collection/immutable/List.scala b/src/library/scala/collection/immutable/List.scala index 59a5bfdf3a..c3f3ff6232 100644 --- a/src/library/scala/collection/immutable/List.scala +++ b/src/library/scala/collection/immutable/List.scala @@ -355,9 +355,9 @@ sealed abstract class List[+A] extends LinearSeq[A] /**

* Sort the list according to the comparison function - * <(e1: a, e2: a) => Boolean, - * which should be true iff e1 is smaller than - * e2. + * lt(e1: a, e2: a) => Boolean, + * which should be true iff e1 precedes + * e2 in the desired ordering. * !!! todo: move sorting to IterableLike *

* -- cgit v1.2.3