From fbaf18ac6731d68bcdddfc3f757ff488a9f4d6a5 Mon Sep 17 00:00:00 2001 From: sonique6784 Date: Sat, 25 Jun 2016 01:38:57 +1000 Subject: [PATCH] update code example, fix end parenthesis update code example, fix end parenthesis and validate(self) call, delegate is not need here. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7541922..93c7dc4 100644 --- a/README.md +++ b/README.md @@ -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 validator.errors { if let field = field as? UITextField {