summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/Product.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library/scala/Product.scala b/src/library/scala/Product.scala
index bae88f52d7..85c562fee8 100644
--- a/src/library/scala/Product.scala
+++ b/src/library/scala/Product.scala
@@ -32,6 +32,7 @@ trait Product extends AnyRef {
*/
def productArity: Int
+ /** An iterator that returns all fields of this product */
def productIterator: Iterator[Any] = new Iterator[Any] {
private var c: Int = 0
private val cmax = productArity