summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLex Spoon <lex@lexspoon.org>2008-02-18 16:45:39 +0000
committerLex Spoon <lex@lexspoon.org>2008-02-18 16:45:39 +0000
commita3d11d3121a22b9c941ce7043dfbaba82abbcedf (patch)
treea2ed3082ca061f4acbed941c67e08a95207dd707
parent288e2408759cfb30b8aa7781d2032ea085f7f397 (diff)
downloadscala-a3d11d3121a22b9c941ce7043dfbaba82abbcedf.tar.gz
scala-a3d11d3121a22b9c941ce7043dfbaba82abbcedf.tar.bz2
scala-a3d11d3121a22b9c941ce7043dfbaba82abbcedf.zip
Changed the toString of Iterator to have the wo...
Changed the toString of Iterator to have the word "iterator" in it
-rw-r--r--src/library/scala/Iterator.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/Iterator.scala b/src/library/scala/Iterator.scala
index 019ab55ffd..c539932e53 100644
--- a/src/library/scala/Iterator.scala
+++ b/src/library/scala/Iterator.scala
@@ -673,5 +673,5 @@ trait Iterator[+A] {
}
buf.append(end)
}
- override def toString = if (hasNext) "has" else "empty"
+ override def toString = (if (hasNext) "non-empty" else "empty")+" iterator"
}