From daf8b1101ff32363218efc3cd69f3d7715bab574 Mon Sep 17 00:00:00 2001 From: Kevin Fourie Date: Tue, 29 Jul 2014 15:05:04 +0200 Subject: [PATCH] Fixed docs: HasErrors is a method not a variable --- validation/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validation/README.md b/validation/README.md index 4bb5b416..e0c30df7 100644 --- a/validation/README.md +++ b/validation/README.md @@ -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 {