diff options
author | Martin Odersky <odersky@gmail.com> | 2011-01-04 17:05:37 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-01-04 17:05:37 +0000 |
commit | f0f0dfd9a326f949ab72786e61596cfa361069ae (patch) | |
tree | 17ab7ac993ef6ad975981eed6f6cb850eec095de /src/library | |
parent | 5c5657c29922fa2ac9eec763176fc2eda5c7b436 (diff) | |
download | scala-f0f0dfd9a326f949ab72786e61596cfa361069ae.tar.gz scala-f0f0dfd9a326f949ab72786e61596cfa361069ae.tar.bz2 scala-f0f0dfd9a326f949ab72786e61596cfa361069ae.zip |
Towards a replay framework for the presentation...
Towards a replay framework for the presentation compiler
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/collection/Iterator.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/collection/Iterator.scala b/src/library/scala/collection/Iterator.scala index b741834cf1..5238a66f70 100644 --- a/src/library/scala/collection/Iterator.scala +++ b/src/library/scala/collection/Iterator.scala @@ -743,11 +743,11 @@ trait Iterator[+A] extends TraversableOnce[A] { def hasNext = hdDefined || self.hasNext - def next = + def next() = if (hdDefined) { hdDefined = false hd - } else self.next + } else self.next() } /** A flexible iterator for transforming an `Iterator[A]` into an |