diff options
author | Paul Phillips <paulp@improving.org> | 2011-11-07 18:22:51 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-11-07 18:22:51 +0000 |
commit | 481096f2c56fbf1b14fff2142917a46668b7c3b2 (patch) | |
tree | 5706019d5e00484f5d8ae2abb9a4bcbd9d904026 /src/library/scala/Product.scala | |
parent | a0a045f5c0b5aa6ed02c849c4ab013cfbfd4e24f (diff) | |
download | scala-481096f2c56fbf1b14fff2142917a46668b7c3b2.tar.gz scala-481096f2c56fbf1b14fff2142917a46668b7c3b2.tar.bz2 scala-481096f2c56fbf1b14fff2142917a46668b7c3b2.zip |
Next collections commit from Todd Vierling.
Changes to library code outside the collections.
Diffstat (limited to 'src/library/scala/Product.scala')
-rw-r--r-- | src/library/scala/Product.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/Product.scala b/src/library/scala/Product.scala index 53a838ee9d..90ae82b6d0 100644 --- a/src/library/scala/Product.scala +++ b/src/library/scala/Product.scala @@ -35,7 +35,7 @@ trait Product extends Equals { /** An iterator over all the elements of this product. * @return in the default implementation, an `Iterator[Any]` */ - def productIterator: Iterator[Any] = new Iterator[Any] { + def productIterator: Iterator[Any] = new collection.AbstractIterator[Any] { private var c: Int = 0 private val cmax = productArity def hasNext = c < cmax |