Commit 509af636 authored by astaxie's avatar astaxie

Merge pull request #716 from 4eek/docfix-validations-HasErrors

Fixed docs: HasErrors is a method not a variable
parents cec151fd daf8b110
......@@ -33,7 +33,7 @@ Direct Use:
valid.Required(u.Name, "name")
valid.MaxSize(u.Name, 15, "nameMax")
valid.Range(u.Age, 0, 140, "age")
if valid.HasErrors {
if valid.HasErrors() {
// validation does not pass
// print invalid message
for _, err := range valid.Errors {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment