rolling back count to countElements

This commit is contained in:
Jeff Potter 2015-03-30 16:10:35 -06:00
parent 00e8db0ce2
commit 36b4402768
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class MinLengthRule : Rule {
}
func validate(value: String) -> Bool {
if count(value) < DEFAULT_MIN_LENGTH {
if countElements(value) < DEFAULT_MIN_LENGTH {
return false
}
return true