summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sources/scala/List.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scala/List.scala b/sources/scala/List.scala
index ad72123218..609f71e9d3 100644
--- a/sources/scala/List.scala
+++ b/sources/scala/List.scala
@@ -566,7 +566,7 @@ trait List[+a] extends Seq[a] {
* @return the first element in the list satisfying <code>p</code>,
* or <code>None</code> if none exists.
*/
- def find(p: a => Boolean): Option[a] = match {
+ override def find(p: a => Boolean): Option[a] = match {
case Nil => None
case head :: tail => if (p(head)) Some(head) else tail find p
};