Skip to content

Commit 3dc5b79

Browse files
Merge pull request #130 from sonique6784/patch-1
update code example, fix end parenthesis
2 parents f8b2d24 + fbaf18a commit 3dc5b79

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Validate Fields on button tap or however you would like to trigger it.
8989

9090
```swift
9191
@IBAction func signupTapped(sender: AnyObject) {
92-
validator.validate(delegate:self)
92+
validator.validate(self)
9393
}
9494
```
9595

@@ -102,7 +102,7 @@ func validationSuccessful() {
102102
// submit the form
103103
}
104104

105-
func validationFailed(errors:[(Validatable ,ValidationError]) {
105+
func validationFailed(errors:[(Validatable ,ValidationError)]) {
106106
// turn the fields to red
107107
for (field, error) in errors {
108108
if let field = field as? UITextField {

0 commit comments

Comments
 (0)