Created
February 9, 2015 20:57
-
-
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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