如何用参数记录枚举案例?

Man*_*uel 4 enums code-documentation swift

给定enum具有case带参数的 ,我如何记录这些参数?

例如这些代码注释:

/// Various coffee types.
enum Coffee {

  /// A Cappuccino.
  /// - parameters:
  ///   - cream: Is true if cream is added.
  case cappuccino(cream: Bool)
}
Run Code Online (Sandbox Code Playgroud)

生成缺少cream参数文档的弹出窗口。

在此处输入图片说明

那么什么是正确的标记?

Bra*_*don 5

/// Various coffee types.
enum Coffee {

    /// A Cappuccino.
    /// - cream: Is true if cream is added.
    case cappuccino(cream: Bool)
}
Run Code Online (Sandbox Code Playgroud)

当你点击它时它会显示为一个项目符号,cappuccino但如果你点击cream参数就不会显示..但我想它已经足够好了..