From da6913f67945a0dce5725792d562c8a660e47ac3 Mon Sep 17 00:00:00 2001 From: Him188 Date: Thu, 31 Dec 2020 18:53:25 +0800 Subject: [PATCH] Update docs --- docs/Messages.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/Messages.md b/docs/Messages.md index 9ed5d92cf..9350d9ce5 100644 --- a/docs/Messages.md +++ b/docs/Messages.md @@ -121,11 +121,10 @@ at.toMiraiCode() // 结果为 `[mirai:at:123]` ### 由 mirai 码字符串取得 `MessageChain` 实例 -``` -// Kotlin +```kotlin val chain = "[mirai:atall]".parseMiraiCode() - -// Java +``` +```java MessageChain chain = MiraiCode.parseMiraiCode("[mirai:atall]"); ```