Skip to content

Commit 4a13a9d

Browse files
committed
Use string interpolation to avoid adding a number and a string
1 parent f54500e commit 4a13a9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/src/main/scala/scala/util/parsing/input/OffsetPosition.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ case class OffsetPosition(source: CharSequence, offset: Int) extends Position {
8282
}
8383

8484
/** Returns a string representation of the `Position`, of the form `line.column`. */
85-
override def toString = line+"."+column
85+
override def toString = s"$line.$column"
8686

8787
/** Compare this position to another, by first comparing their line numbers,
8888
* and then -- if necessary -- using the columns to break a tie.

0 commit comments

Comments
 (0)