File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
library/src/scala/collection Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -786,8 +786,6 @@ trait Iterator[+A] extends TraversableOnce[A] {
786
786
}
787
787
else empty.next()
788
788
}
789
-
790
- override def toString = " unknown-if-empty iterator"
791
789
}
792
790
793
791
(leading, trailing)
@@ -1418,11 +1416,11 @@ trait Iterator[+A] extends TraversableOnce[A] {
1418
1416
1419
1417
/** Converts this iterator to a string.
1420
1418
*
1421
- * @return `"empty iterator"` or `"non-empty iterator"`, depending on
1419
+ * @return `"< iterator>"`
1422
1420
* whether or not the iterator is empty.
1423
1421
* @note Reuse: $preservesIterator
1424
1422
*/
1425
- override def toString = ( if (hasNext) " non-empty " else " empty " ) + " iterator"
1423
+ override def toString = " < iterator> "
1426
1424
}
1427
1425
1428
1426
/** Explicit instantiation of the `Iterator` trait to reduce class file size in subclasses. */
You can’t perform that action at this time.
0 commit comments