Dio*_*lor 8 kotlin kdoc kotlin-dokka
对于两种给定的方法:
/**
* Adds a [DataItem] to the Android Wear network. The updated item is synchronized across all devices.
*/
fun putItem(){ .... }
/**
* "same KDOC here with above"
*/
fun putItem(putRequest: PutDataRequest){ .... }
Run Code Online (Sandbox Code Playgroud)
有没有可能复制/链接第二种方法的文档与第一种方法相同?
手动复制粘贴KDOC并不是那么好,因为如果你更新其中一个,很有可能第二个意外地过时.
| 归档时间: |
|
| 查看次数: |
298 次 |
| 最近记录: |