mirror of
https://github.com/kataras/iris.git
synced 2025-03-13 22:36:24 +01:00
fix typo reported by https://github.com/kataras/iris/issues/1715
parent
b3cca49b4e
commit
fc1a9ced29
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user