mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-20 17:04:45 +08:00
Fix docs
This commit is contained in:
parent
e3576fe5d0
commit
dad9c0b7b8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user