We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f94dc2 commit da3fb9aCopy full SHA for da3fb9a
library/src/scala/io/Source.scala
@@ -317,7 +317,7 @@ abstract class Source extends Iterator[Char] with Closeable {
317
report(pos, msg, out)
318
}
319
320
- private def spaces(n: Int) = List.fill(n)(' ').mkString
+ private def spaces(n: Int) = " ".repeat(n)
321
/**
322
* @param pos the source position (line/column)
323
* @param msg the error message to report
0 commit comments