From fc1a9ced2990ca6ef97755b18a5eb167e06312ca Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Wed, 27 Jan 2021 00:57:51 +0200 Subject: [PATCH] fix typo reported by https://github.com/kataras/iris/issues/1715 --- Model-validation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model-validation.md b/Model-validation.md index 577bb96..5b52102 100644 --- a/Model-validation.md +++ b/Model-validation.md @@ -55,7 +55,7 @@ func main() { // Returns InvalidValidationError for bad validation input, // nil or ValidationErrors ( []FieldError ) - err := vctx.ReadJSON(&user) + err := ctx.ReadJSON(&user) if err != nil { // This check is only needed when your code could produce // an invalid value for validation such as interface with nil