Guest User

Untitled

a guest
Jan 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. /// An example function.
  2. /// Documentation goes here.
  3. ///
  4. /// - Parameters:
  5. /// - optionalClosure: An optional closure.
  6. /// - aClosureParameter: This will not be displayed.
  7. func exampleMethod(optionalClosure: ((_ aClosureParameter: Bool) -> Void)?) {
  8. // Do something
  9. }
  10.  
  11. /// An example function.
  12. /// Documentation goes here.
  13. ///
  14. /// - Parameters:
  15. /// - optionalClosure: An optional closure.
  16. /// - aClosureParameter: This **will** be displayed.
  17. func exampleMethod(optionalClosure: Optional<(_ aClosureParameter: Bool) -> Void>) {
  18. // Do something
  19. }
Add Comment
Please, Sign In to add comment