Skip to content

Commit 31acfd7

Browse files
committed
update truncate don't use infix syntax
1 parent 26242a5 commit 31acfd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/repl/Rendering.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private[repl] class Rendering(parentClassLoader: Option[ClassLoader] = None) {
6666

6767
/** Used to elide output in replStringOf. TODO: Implement setting scala.repl.maxprintstring as in Scala 2 */
6868
private[repl] def truncate(str: String): String =
69-
if str.length > MaxStringElements then (str take MaxStringElements - 3) + "..."
69+
if str.length > MaxStringElements then str.take(MaxStringElements - 3) + "..."
7070
else str
7171

7272
/** Return a String representation of a value we got from `classLoader()`. */

0 commit comments

Comments
 (0)