diff options
author | mihaylov <mihaylov@epfl.ch> | 2007-02-11 16:44:10 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2007-02-11 16:44:10 +0000 |
commit | c96ed0ccb8f2318cd6f3dd2565e9503975889a8e (patch) | |
tree | 5107c2a8101283b1e2950b77814c527ca395b5ef /src | |
parent | 37dd5e78a7bf2ac0485659365e52c5a51e616eb5 (diff) | |
download | scala-c96ed0ccb8f2318cd6f3dd2565e9503975889a8e.tar.gz scala-c96ed0ccb8f2318cd6f3dd2565e9503975889a8e.tar.bz2 scala-c96ed0ccb8f2318cd6f3dd2565e9503975889a8e.zip |
Fixed contribution #322 concerning RichString
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/runtime/RichString.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/runtime/RichString.scala b/src/library/scala/runtime/RichString.scala index 8016b59adf..e5f88bcba6 100644 --- a/src/library/scala/runtime/RichString.scala +++ b/src/library/scala/runtime/RichString.scala @@ -79,7 +79,7 @@ final class RichString(val self: String) extends Proxy with Seq[Char] with Order def linesWithSeparators = new Iterator[String] { val len = self.length var index = 0 - def hasNext: Boolean = index <= len + def hasNext: Boolean = index < len def next: String = { if (index >= len) throw new NoSuchElementException("next on empty iterator") val start = index |