diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2008-01-21 15:08:13 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2008-01-21 15:08:13 +0000 |
commit | ba2bb0f732c192b7639a85a9970022b4a56d76d6 (patch) | |
tree | bdaf811483ab188ca07ffbd63e089cb6fb50b0d0 | |
parent | d890aa1a5c3d7001f09b8a51fd01e82504fe5b25 (diff) | |
download | scala-ba2bb0f732c192b7639a85a9970022b4a56d76d6.tar.gz scala-ba2bb0f732c192b7639a85a9970022b4a56d76d6.tar.bz2 scala-ba2bb0f732c192b7639a85a9970022b4a56d76d6.zip |
Fixed issue #313.
-rw-r--r-- | src/library/scala/List.scala | 2 |
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") |