mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 18:40:15 +08:00
Fix typo
This commit is contained in:
parent
6b9ec05c98
commit
3b9414dc50
@ -34,10 +34,20 @@ public interface JvmPluginDescription : PluginDescription {
|
||||
*/
|
||||
@JvmSynthetic
|
||||
public operator fun invoke(
|
||||
name: String,
|
||||
/**
|
||||
* @see [PluginDescription.id]
|
||||
*/
|
||||
id: String,
|
||||
/**
|
||||
* @see [PluginDescription.version]
|
||||
*/
|
||||
version: String,
|
||||
block: JvmPluginDescriptionBuilder.() -> Unit = {}
|
||||
): JvmPluginDescription = JvmPluginDescriptionBuilder(name, version).apply(block).build()
|
||||
/**
|
||||
* @see [PluginDescription.name]
|
||||
*/
|
||||
name: String = id,
|
||||
block: JvmPluginDescriptionBuilder.() -> Unit = {},
|
||||
): JvmPluginDescription = JvmPluginDescriptionBuilder(id, version).apply { name(name) }.apply(block).build()
|
||||
|
||||
/**
|
||||
* 构建 [JvmPluginDescription]
|
||||
@ -45,10 +55,20 @@ public interface JvmPluginDescription : PluginDescription {
|
||||
*/
|
||||
@JvmSynthetic
|
||||
public operator fun invoke(
|
||||
name: String,
|
||||
/**
|
||||
* @see [PluginDescription.id]
|
||||
*/
|
||||
id: String,
|
||||
/**
|
||||
* @see [PluginDescription.version]
|
||||
*/
|
||||
version: Semver,
|
||||
block: JvmPluginDescriptionBuilder.() -> Unit = {}
|
||||
): JvmPluginDescription = JvmPluginDescriptionBuilder(name, version).apply(block).build()
|
||||
/**
|
||||
* @see [PluginDescription.name]
|
||||
*/
|
||||
name: String = id,
|
||||
block: JvmPluginDescriptionBuilder.() -> Unit = {},
|
||||
): JvmPluginDescription = JvmPluginDescriptionBuilder(id, version).apply { name(name) }.apply(block).build()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user