This commit is contained in:
Him188 2020-03-08 19:33:58 +08:00
parent e3576fe5d0
commit dad9c0b7b8

View File

@ -86,14 +86,12 @@ interface Message {
* ```kotlin * ```kotlin
* val a = PlainText("Hello ") * val a = PlainText("Hello ")
* val b = PlainText("world!") * val b = PlainText("world!")
* val c:MessageChain = a + b * val c: CombinedMessage = a + b
* println(c)// "Hello world!" * println(c) // "Hello world!"
* ```
* *
* ```kotlin
* val d = PlainText("world!") * val d = PlainText("world!")
* val e = c + d;//PlainText + MessageChain * val e = c + d; // PlainText + CombinedMessage
* println(c)// "Hello world!" * println(c) // "Hello world!"
* ``` * ```
*/ */
@JvmSynthetic // in java they should use `plus` instead @JvmSynthetic // in java they should use `plus` instead