summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2009-12-17 11:03:57 +0000
committerMartin Odersky <odersky@gmail.com>2009-12-17 11:03:57 +0000
commit65bd378795d655679778ce2699f2a3c4f0580235 (patch)
treedae755582397dc1aa37b8bcb1f55737f8f499d5b /src/library
parent1a7200a1d20afb60bf5e1eb912e7e31c3156a851 (diff)
downloadscala-65bd378795d655679778ce2699f2a3c4f0580235.tar.gz
scala-65bd378795d655679778ce2699f2a3c4f0580235.tar.bz2
scala-65bd378795d655679778ce2699f2a3c4f0580235.zip
hardening the compiler to avoid exceptions I ob...
hardening the compiler to avoid exceptions I observed when used under Eclipse.
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/collection/Iterator.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/Iterator.scala b/src/library/scala/collection/Iterator.scala
index 07a2d55668..54a38848dd 100644
--- a/src/library/scala/collection/Iterator.scala
+++ b/src/library/scala/collection/Iterator.scala
@@ -1098,7 +1098,7 @@ trait Iterator[+A] { self =>
* @param dest The buffer to which elements are copied
*/
def copyToBuffer[B >: A](dest: Buffer[B]) {
- while (hasNext) dest += next
+ while (hasNext) dest += next()
}
/** Traverses this iterator and returns all produced values in a list.