Skip to content

Instantly share code, notes, and snippets.

@pedrommcarrasco
Last active January 6, 2019 19:36
Show Gist options
  • Save pedrommcarrasco/3314a3485b42ad2ed1573cf322866876 to your computer and use it in GitHub Desktop.
Save pedrommcarrasco/3314a3485b42ad2ed1573cf322866876 to your computer and use it in GitHub Desktop.
I Want To Be Discardable - Example
@discardableResult
func example() -> String {
let description = "This is an example"
print(description)
return description
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment