diff options
author | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-11-19 15:03:47 +0000 |
---|---|---|
committer | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-11-19 15:03:47 +0000 |
commit | 4886b55fa41e6c98434c90fe33a5909c5c935b5b (patch) | |
tree | d2b89798b09ff6141719ab2551660867042d436a /src | |
parent | 72969dec9de6b569f932577283b2029c682cf1d1 (diff) | |
download | scala-4886b55fa41e6c98434c90fe33a5909c5c935b5b.tar.gz scala-4886b55fa41e6c98434c90fe33a5909c5c935b5b.tar.bz2 scala-4886b55fa41e6c98434c90fe33a5909c5c935b5b.zip |
Fixes #3647, closes #3647, adds a test case for...
Fixes #3647, closes #3647, adds a test case for it, and a missing test
case for #3935.
No review.
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/collection/immutable/PagedSeq.scala | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/library/scala/collection/immutable/PagedSeq.scala b/src/library/scala/collection/immutable/PagedSeq.scala index 9cb1040f95..270524eaa7 100644 --- a/src/library/scala/collection/immutable/PagedSeq.scala +++ b/src/library/scala/collection/immutable/PagedSeq.scala @@ -65,11 +65,10 @@ object PagedSeq { def fromLines(source: Iterator[String]): PagedSeq[Char] = { var isFirst = true fromStrings(source map { line => - if (isFirst) line - else { + if (isFirst) { isFirst = false - "\n"+line - } + line + } else "\n"+line }) } |