From ba2bb0f732c192b7639a85a9970022b4a56d76d6 Mon Sep 17 00:00:00 2001 From: Gilles Dubochet Date: Mon, 21 Jan 2008 15:08:13 +0000 Subject: Fixed issue #313. --- src/library/scala/List.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- cgit v1.2.3