1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-24 20:43:33 +08:00

fix: docs

This commit is contained in:
cssxsh 2023-07-10 14:02:11 +08:00 committed by Karlatemp
parent d27f9069f6
commit cd1c297e11
No known key found for this signature in database
GPG Key ID: BA173CA2B9956C59
2 changed files with 3 additions and 2 deletions
mirai-console/backend/mirai-console/src/plugin

View File

@ -111,10 +111,11 @@ public interface PluginDescription {
/**
* 此插件依赖的 Mirai Console 版本号. null 时则为不限制版本. 通常建议至少限制使用同一个主版本号.
* 如开发时依赖该插件版本 2.15.0, 则将版本限制设置为 `[2.15.0, 2.16.0)`, 表示大于等于 `2.15.0`, 小于 `2.16.0`.
* 如开发时依赖该插件版本 2.15.0, 则将版本限制设置为 `[2.15.0, 3.0.0)`, 表示大于等于 `2.15.0`, 小于 `3.0.0`.
*
* 版本遵循 [语义化版本 2.0 规范](https://semver.org/lang/zh-CN/),
*
* @since 2.16
* @see MiraiConsole.version
*/
@ResolveContext(VERSION_REQUIREMENT) public val consoleRequirement: String?

View File

@ -121,7 +121,7 @@ public inline fun JvmPluginDescription(
*
* #### Mirai Version Requirement (Since 2.16)
* ```
* dependsOn("net.mamoe.mirai.console", "[2.16.0, 3.0.0)")
* dependsOn("net.mamoe.mirai-console", "[2.16.0, 3.0.0)")
* ```
*
* @see [JvmPluginDescription]