summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2007-06-17 16:30:00 +0000
committermihaylov <mihaylov@epfl.ch>2007-06-17 16:30:00 +0000
commitd675971454254b1ebf5560d4af2829a3c4017930 (patch)
tree1ca87eefea3f91e1f243c10ecfc36ca1a9cb880b /src
parent6bc98cf8aff5fe7e595b1ec11712aa95356142aa (diff)
downloadscala-d675971454254b1ebf5560d4af2829a3c4017930.tar.gz
scala-d675971454254b1ebf5560d4af2829a3c4017930.tar.bz2
scala-d675971454254b1ebf5560d4af2829a3c4017930.zip
Fixed contrib #658 - Iterable.isEmpty
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/Iterable.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/Iterable.scala b/src/library/scala/Iterable.scala
index 00f72e3529..5657a624cd 100644
--- a/src/library/scala/Iterable.scala
+++ b/src/library/scala/Iterable.scala
@@ -444,7 +444,7 @@ trait Iterable[+A] {
/** Is this collection empty? */
- def isEmpty = elements.hasNext
+ def isEmpty = !elements.hasNext
/**
* returns a projection that can be used to call non-strict <code>filter</code>,