From f6350575f3804b629587c6e6b63617cbe807226f Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 17 Jul 2009 19:07:39 +0000 Subject: sync --- src/library/scala/collection/generic/VectorTemplate.scala | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/library/scala/collection/generic/VectorTemplate.scala b/src/library/scala/collection/generic/VectorTemplate.scala index 31f728e835..f8be15016a 100644 --- a/src/library/scala/collection/generic/VectorTemplate.scala +++ b/src/library/scala/collection/generic/VectorTemplate.scala @@ -257,12 +257,12 @@ trait VectorTemplate[+A, +This <: VectorTemplate[A, This] with Vector[A]] extend super.endsWith(that) } - // override def indexOfSeq[B >: A](that: Sequence[B]): Int = { - // var i = 0 - // val last = length - that.length - // while (i <= last && !startsWith(that, i)) i += 1 - // negLength(i) - // } + override def indexOfSeq[B >: A](that: Sequence[B]): Int = { + var i = 0 + val last = length - that.length + while (i <= last && !startsWith(that, i)) i += 1 + negLength(i) + } override def equals(that: Any): Boolean = that match { case that1: Vector[a] => -- cgit v1.2.3