我很想在文檔文本 中引用方法的參數,但不知道如何去做。
在.NET世界中,我們使用標籤paramref
可以參考文檔中的函數參數嗎?
只是作爲一個例子:
/** Send email with the specified @paramref body to the addesses given in @paramref to.
@param body Just a plain text or teamplate-aware text.*/
def SendEmail(body: EmailBody, to: EmailAddress*) = ???
它是如何在斯卡拉做了什麼?