Skip to content

Commit 4a39386

Browse files
committed
updating readme 3
1 parent 59551ec commit 4a39386

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Swift Validator is a rule-based validation library for Swift.
66
Core Concepts
77

88
* ```UITextField``` + ```ValidationRule``` go into ```Validator```
9-
* ```UITextFields``` + ```ValidationError``` come out of ```Validator```
9+
* ```UITextField``` + ```ValidationError``` come out of ```Validator```
1010
* ```UITextField``` is registered to ```Validator```
1111
* ```Validator``` evaluates ```ValidationRules``` sequentially and stops evaluating when a ```ValidationRule``` fails.
1212

@@ -94,7 +94,7 @@ class SSNValidation: Validation {
9494
if ssnTest.evaluateWithObject(value) {
9595
return (true, .NoError)
9696
}
97-
return (false, .SocialSecurity) // We will create this later ValidationErrorTYpe
97+
return (false, .SocialSecurity) // We will create this later ValidationErrorType.SocialSecurity
9898
}
9999
return (false, .SocialSecurity)
100100
}
@@ -103,7 +103,7 @@ class SSNValidation: Validation {
103103

104104
```
105105

106-
Add the ```.SocialSecurity``` ValidationRuleType
106+
Add the ```ValidationRuleType.SocialSecurity```
107107

108108
```swift
109109

@@ -116,12 +116,12 @@ enum ValidationRuleType {
116116
ZipCode,
117117
PhoneNumber,
118118
FullName,
119-
SocialSecurity // Added to the Rule Types
119+
SocialSecurity // Added to the ValidationRuleTypes
120120
}
121121

122122
```
123123

124-
Add the ```.SocialSecurity``` ValidationErrorType and description()
124+
Add the ```ValidationErrorType.SocialSecurity``` and ```description()```
125125

126126
```swift
127127

@@ -134,7 +134,7 @@ enum ValidationErrorType {
134134
ZipCode,
135135
PhoneNumber,
136136
FullName,
137-
SocialSecurity, // Added to the Error Types
137+
SocialSecurity, // Added to the ValidationErrorTypes
138138
NoError
139139

140140
func description() -> String {
@@ -164,7 +164,7 @@ enum ValidationErrorType {
164164
}
165165

166166
```
167-
Register the Validation with the ValidationFactory
167+
Register the ```SSNValidation``` with the ```ValidationFactory```
168168

169169
```swift
170170

0 commit comments

Comments
 (0)