Convert `var` to `let`, resolve warning.

This commit is contained in:
Jonah Williams 2015-09-10 17:36:23 -07:00
parent 2b342f8884
commit 45da08a089
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}