Merge pull request #130 from sonique6784/patch-1

update code example, fix end parenthesis
This commit is contained in:
David Patterson 2016-07-28 23:00:52 -05:00 committed by GitHub
commit 3dc5b79272
1 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ Validate Fields on button tap or however you would like to trigger it.
```swift
@IBAction func signupTapped(sender: AnyObject) {
validator.validate(delegate:self)
validator.validate(self)
}
```
@ -102,7 +102,7 @@ func validationSuccessful() {
// submit the form
}
func validationFailed(errors:[(Validatable ,ValidationError]) {
func validationFailed(errors:[(Validatable ,ValidationError)]) {
// turn the fields to red
for (field, error) in errors {
if let field = field as? UITextField {