daf8b110 by Kevin Fourie

Fixed docs: HasErrors is a method not a variable

1 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 {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!