Skip to content

Instantly share code, notes, and snippets.

@BradB132
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BradB132/bcd2bdd0879965c81fd5 to your computer and use it in GitHub Desktop.
Save BradB132/bcd2bdd0879965c81fd5 to your computer and use it in GitHub Desktop.
SwiftTricks-3
//NOTE: obj.setString() returns Void
//don't do this
let block1:(Void->Void) = {
obj.setString("myString") //this causes a build error
}
//do this instead
let block2:(Void->Void) = {
obj.setString("myString")
return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment