mirror of
https://github.com/Fishwaldo/validator.git
synced 2025-03-17 12:41:33 +00:00
Minor typo corrected in doc.go
This commit is contained in:
parent
e8d470cd7a
commit
24ea3a17b5
1 changed files with 1 additions and 1 deletions
2
doc.go
2
doc.go
|
@ -25,7 +25,7 @@ They return type error to avoid the issue discussed in the following, where err
|
|||
http://stackoverflow.com/a/29138676/3158232
|
||||
https://github.com/go-playground/validator/issues/134
|
||||
|
||||
validator only returns nil or ValidationErrors as type error; so in you code all you need to do
|
||||
validator only returns nil or ValidationErrors as type error; so, in your code all you need to do
|
||||
is check if the error returned is not nil, and if it's not type cast it to type ValidationErrors
|
||||
like so err.(validator.ValidationErrors)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue