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 26242a5 commit 31acfd7Copy full SHA for 31acfd7
compiler/src/dotty/tools/repl/Rendering.scala
@@ -66,7 +66,7 @@ private[repl] class Rendering(parentClassLoader: Option[ClassLoader] = None) {
66
67
/** Used to elide output in replStringOf. TODO: Implement setting scala.repl.maxprintstring as in Scala 2 */
68
private[repl] def truncate(str: String): String =
69
- if str.length > MaxStringElements then (str take MaxStringElements - 3) + "..."
+ if str.length > MaxStringElements then str.take(MaxStringElements - 3) + "..."
70
else str
71
72
/** Return a String representation of a value we got from `classLoader()`. */
0 commit comments