summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dubochet <gilles.dubochet@epfl.ch>2008-01-21 15:08:13 +0000
committerGilles Dubochet <gilles.dubochet@epfl.ch>2008-01-21 15:08:13 +0000
commitba2bb0f732c192b7639a85a9970022b4a56d76d6 (patch)
treebdaf811483ab188ca07ffbd63e089cb6fb50b0d0
parentd890aa1a5c3d7001f09b8a51fd01e82504fe5b25 (diff)
downloadscala-ba2bb0f732c192b7639a85a9970022b4a56d76d6.tar.gz
scala-ba2bb0f732c192b7639a85a9970022b4a56d76d6.tar.bz2
scala-ba2bb0f732c192b7639a85a9970022b4a56d76d6.zip
Fixed issue #313.
-rw-r--r--src/library/scala/List.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/List.scala b/src/library/scala/List.scala
index 00b9112807..c0adc30db2 100644
--- a/src/library/scala/List.scala
+++ b/src/library/scala/List.scala
@@ -547,7 +547,7 @@ sealed abstract class List[+A] extends Seq[A] {
/** Returns the last element of this list.
*
* @return the last element of the list.
- * @throws Predef.UnsupportedOperationException if the list is empty.
+ * @throws Predef.NoSuchElementException if the list is empty.
*/
override def last: A =
if (isEmpty) throw new Predef.NoSuchElementException("Nil.last")