Commit daf8b110 authored by Kevin Fourie's avatar Kevin Fourie

Fixed docs: HasErrors is a method not a variable

parent cec151fd
......@@ -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