@@ -588,7 +588,7 @@ trait Iterator[+A] extends IterableOnce[A] with IterableOnceOps[A, Iterator, Ite
588588 def next () = f(self.next())
589589 }
590590
591- def flatMap [B ](f : A => IterableOnce [B ]^ ): Iterator [B ]^ {this , f} = new AbstractIterator [B ] {
591+ def flatMap [B ](@ caps.use f : A => IterableOnce [B ]^ ): Iterator [B ]^ {this , f* } = new AbstractIterator [B ] {
592592 private [this ] var cur : Iterator [B ]^ {f} = Iterator .empty
593593 /** Trillium logic boolean: -1 = unknown, 0 = false, 1 = true */
594594 private [this ] var _hasNext : Int = - 1
@@ -623,7 +623,7 @@ trait Iterator[+A] extends IterableOnce[A] with IterableOnceOps[A, Iterator, Ite
623623 }
624624 }
625625
626- def flatten [B ](implicit ev : A -> IterableOnce [B ]): Iterator [B ]^ {this } =
626+ def flatten [B ](implicit ev : A -> IterableOnce [B ]): Iterator [B ]^ {this , ev * } =
627627 flatMap[B ](ev)
628628
629629 def concat [B >: A ](xs : => IterableOnce [B ]^ ): Iterator [B ]^ {this , xs} = new Iterator .ConcatIterator [B ](self).concat(xs)
@@ -982,7 +982,7 @@ object Iterator extends IterableFactory[Iterator] {
982982 /** Creates a target $coll from an existing source collection
983983 *
984984 * @param source Source collection
985- * @tparam A the type of the collection’ s elements
985+ * @tparam A the type of the collection' s elements
986986 * @return a new $coll with the elements of `source`
987987 */
988988 override def from [A ](source : IterableOnce [A ]^ ): Iterator [A ]^ {source} = source.iterator
@@ -1003,7 +1003,7 @@ object Iterator extends IterableFactory[Iterator] {
10031003
10041004 /**
10051005 * @return A builder for $Coll objects.
1006- * @tparam A the type of the ${coll}’ s elements
1006+ * @tparam A the type of the ${coll}' s elements
10071007 */
10081008 def newBuilder [A ]: Builder [A , Iterator [A ]] =
10091009 new ImmutableBuilder [A , Iterator [A ]](empty[A ]) {
0 commit comments