Correct deprecation message for StringBuilder { }.

This commit is contained in:
Ilya Gorbunov
2015-10-20 16:31:32 +03:00
parent d054c6bf6a
commit a439cce7d1
@@ -6,7 +6,7 @@ package kotlin
/**
* Builds newly created StringBuilder using provided body.
*/
@Deprecated("Use StringBuilder().apply { body } or use String.build { body } if you need String as a result.", ReplaceWith("StringBuilder().apply(body)"))
@Deprecated("Use StringBuilder().apply { body } or use buildString { body } if you need String as a result.", ReplaceWith("StringBuilder().apply(body)"))
public inline fun StringBuilder(body: StringBuilder.() -> Unit): StringBuilder = StringBuilder().apply(body)
/**