Changed the toString of Iterator to have the word "iterator" in it

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@14051 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
spoon 2008-02-18 16:45:39 +00:00
parent 94d79b0907
commit 525da8303c
1 changed files with 1 additions and 1 deletions

View File

@ -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"
}