From faeeb4f264534e7f39b0a8f7c87226069717b43d Mon Sep 17 00:00:00 2001 From: Iulian Dragos Date: Fri, 9 May 2008 12:53:13 +0000 Subject: Fixed #863. --- src/library/scala/Seq.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library/scala/Seq.scala b/src/library/scala/Seq.scala index 14001d1b0a..b49b24ebe8 100644 --- a/src/library/scala/Seq.scala +++ b/src/library/scala/Seq.scala @@ -168,7 +168,7 @@ trait Seq[+A] extends AnyRef with PartialFunction[Int, A] with Collection[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. */ def last: A = length match { case 0 => throw new Predef.NoSuchElementException -- cgit v1.2.3