top | item 30020124

(no title)

cherryblossom00 | 4 years ago

This reminds me of Swift/Xcode's documentation comments:

  /// Does something.
  ///
  /// - Parameters:
  ///   - bar: A description for bar.
  ///   - baz: A description for baz.
  ///
  /// - Returns: Something fancy.
  /// - Throws: Throws `SomeErrorType` if `bar` is invalid.
  func foo(bar: String, baz: Int) throws -> Bool { /* ... */ }

discuss

order

No comments yet.