1

是否有使用 KDoc 记录默认参数的语法,还是我应该手动进行?

/**
 * A group of *members*.
 *
 * This class has no useful logic; it's just a documentation example.
 *
 * @property name the name of this group. Default -"NoName"
 * @constructor Creates an empty group.
 */
class Group(val name: String = "NoName") {
    /**
     * Adds a [member] (default - NoMember) to this group.
     * @return the new size of the group.
     */
    fun add(member: String = "NoMember"): Int { ... }
}
4

0 回答 0