Skip to content

Commit 835a701

Browse files
author
Sara Alemanno
committed
Update StringContextMacro.scala
1 parent 3de568d commit 835a701

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src-3.x/dotty/internal/StringContextMacro.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ object StringContextMacro {
358358
*/
359359
def checkSubtype(actualType : Type, expectedType : String, argIndex : Int, possibilities : Type*) = {
360360
if (possibilities.find(actualType <:< _).isEmpty)
361-
reporter.argError("type mismatch;\n found : " + actualType.widen.show.stripPrefix("scala.Predef.") + "\n required: " + expectedType + "\n", argIndex)
361+
reporter.argError("type mismatch;\n found : " + actualType.widen.show.stripPrefix("scala.Predef.") + "\n required: " + expectedType, argIndex)
362362
}
363363

364364
/** Checks whether a given argument index, relative or not, is in the correct bounds
@@ -641,7 +641,7 @@ object StringContextMacro {
641641
case 'h' | 'H' | 'S' | 's' =>
642642
if (!(argType <:< typeOf[java.util.Formattable]))
643643
for {flag <- flags ; if (flag._1 == '#')}
644-
reporter.argError("type mismatch;\n found :" + argType.widen.show.stripPrefix("scala.Predef.") + "\n required: java.util.Formattable\n", argIndex)
644+
reporter.argError("type mismatch;\n found :" + argType.widen.show.stripPrefix("scala.Predef.") + "\n required: java.util.Formattable", argIndex)
645645
case 'n' | '%' =>
646646
case illegal =>
647647
}

0 commit comments

Comments
 (0)