From dad9c0b7b8dcb911f1a7defa0a4c27c4fa2f5cae Mon Sep 17 00:00:00 2001 From: Him188 Date: Sun, 8 Mar 2020 19:33:58 +0800 Subject: [PATCH] Fix docs --- .../kotlin/net.mamoe.mirai/message/data/Message.kt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/Message.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/Message.kt index be0227ab0..47f76c920 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/Message.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/Message.kt @@ -86,14 +86,12 @@ interface Message { * ```kotlin * val a = PlainText("Hello ") * val b = PlainText("world!") - * val c:MessageChain = a + b - * println(c)// "Hello world!" - * ``` + * val c: CombinedMessage = a + b + * println(c) // "Hello world!" * - * ```kotlin * val d = PlainText("world!") - * val e = c + d;//PlainText + MessageChain - * println(c)// "Hello world!" + * val e = c + d; // PlainText + CombinedMessage + * println(c) // "Hello world!" * ``` */ @JvmSynthetic // in java they should use `plus` instead