summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")