Skip to content

Commit

Permalink
fixed doc
Browse files Browse the repository at this point in the history
  • Loading branch information
qiangxue committed Apr 26, 2020
1 parent f0cccd2 commit 31fe4f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion when.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (r WhenRule) Validate(value interface{}) error {
return Validate(value, r.elseRules...)
}

// When returns a validation rule that executes the given list of rules when the condition is false.
// Else returns a validation rule that executes the given list of rules when the condition is false.
func (r WhenRule) Else(rules ...Rule) WhenRule {
r.elseRules = rules
return r
Expand Down

0 comments on commit 31fe4f3

Please sign in to comment.