summaryrefslogtreecommitdiff
path: root/src/library/scala/io
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-11-07 18:22:56 +0000
committerPaul Phillips <paulp@improving.org>2011-11-07 18:22:56 +0000
commit106180d020d3436b29432235fffe098d15fa7422 (patch)
tree50f29ff0057280fd1267bbcc49407481b26a0954 /src/library/scala/io
parent481096f2c56fbf1b14fff2142917a46668b7c3b2 (diff)
downloadscala-106180d020d3436b29432235fffe098d15fa7422.tar.gz
scala-106180d020d3436b29432235fffe098d15fa7422.tar.bz2
scala-106180d020d3436b29432235fffe098d15fa7422.zip
Third collections commit from Todd Vierling.
Misc cleanups associated with the previous commits: limiting overly expanded types, fixing externally visible types for scaladoc, utilizing abstract collection classes where possible, etc.
Diffstat (limited to 'src/library/scala/io')
-rw-r--r--src/library/scala/io/Source.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/io/Source.scala b/src/library/scala/io/Source.scala
index e7bcc32558..3cee0ace79 100644
--- a/src/library/scala/io/Source.scala
+++ b/src/library/scala/io/Source.scala
@@ -190,7 +190,7 @@ abstract class Source extends Iterator[Char] {
private def lineNum(line: Int): String = getLines() drop (line - 1) take 1 mkString
- class LineIterator() extends AbstractIterator[String] {
+ class LineIterator extends AbstractIterator[String] with Iterator[String] {
private[this] val sb = new StringBuilder
lazy val iter: BufferedIterator[Char] = Source.this.iter.buffered