Skip to content

Instantly share code, notes, and snippets.

@jinthagerman
Created February 9, 2015 20:57
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 jinthagerman/bcb00f95ebf5adb9e5aa to your computer and use it in GitHub Desktop.
Save jinthagerman/bcb00f95ebf5adb9e5aa to your computer and use it in GitHub Desktop.
Unannotated single-expression closures with non-Void return types can now be used in Void contexts
// This
self.label.snp_makeConstraints { make in
make.edges.equalTo(self.view)
}
// Instead of this
self.label.snp_makeConstraints { make in
make.edges.equalTo(self.view)
return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment