Skip to content

Commit 6ba2e4f

Browse files
committed
Use string interpolation
1 parent 162c86d commit 6ba2e4f

File tree

1 file changed

+1
-1
lines changed
  • shared/src/main/scala/scala/util/parsing/combinator/token

1 file changed

+1
-1
lines changed

shared/src/main/scala/scala/util/parsing/combinator/token/Tokens.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ trait Tokens {
3434
* errors detected during lexical analysis
3535
*/
3636
case class ErrorToken(msg: String) extends Token {
37-
def chars = "*** error: "+msg
37+
def chars = s"*** error: $msg"
3838
}
3939

4040
/** A class for end-of-file tokens */

0 commit comments

Comments
 (0)