summaryrefslogtreecommitdiff
path: root/src/library/scala/List.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/scala/List.scala')
-rw-r--r--src/library/scala/List.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/library/scala/List.scala b/src/library/scala/List.scala
index c9f5789310..c80b0c24e2 100644
--- a/src/library/scala/List.scala
+++ b/src/library/scala/List.scala
@@ -473,11 +473,11 @@ sealed abstract class List[+a] extends Seq[a] {
}
}
- /** Transform this sequence into a list of all elements.
- *
- * @return a list which enumerates all elements of this sequence.
- */
- //override def toList: List[a] = this; //!!!
+ /** Overrides the method in Iterable for efficiency.
+ *
+ * @return the list itself
+ */
+ override def toList: List[a] = this;
/** Returns the list without its last element.
*