Skip to content

Commit

Permalink
Convert var to let, resolve warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonah-williams committed Sep 11, 2015
1 parent 2b342f8 commit 45da08a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Validator/PhoneNumberRule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class PhoneNumberRule: Rule {
}

func validate(value: String) -> Bool {
var phoneTest = NSPredicate(format: "SELF MATCHES %@", PHONE_REGEX)
let phoneTest = NSPredicate(format: "SELF MATCHES %@", PHONE_REGEX)
return phoneTest.evaluateWithObject(value)
}

Expand Down

0 comments on commit 45da08a

Please sign in to comment.