Skip to content

Commit 69b617c

Browse files
ilya-gminamoto79
authored andcommitted
Fix string literal escape in replacement expression
(cherry picked from commit 5d993ba9c372df8290875d965f469377c14158e9)
1 parent fe9aad9 commit 69b617c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/src/main/kotlin/kotlin/text/StringBuilder.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ public inline fun StringBuilder.setLength(l: Int) = this.setLength(newLength = l
886886
*/
887887
@Deprecated(
888888
"Use insertRange(index: Int, csq: CharSequence, start: Int, end: Int) instead",
889-
ReplaceWith("insertRange(index, csq ?: "null", start, end)"),
889+
ReplaceWith("insertRange(index, csq ?: \"null\", start, end)"),
890890
DeprecationLevel.WARNING
891891
)
892892
@kotlin.internal.InlineOnly

0 commit comments

Comments
 (0)