mirror of
https://github.com/kataras/iris.git
synced 2025-03-14 08:36:28 +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,
|
// Returns InvalidValidationError for bad validation input,
|
||||||
// nil or ValidationErrors ( []FieldError )
|
// nil or ValidationErrors ( []FieldError )
|
||||||
err := vctx.ReadJSON(&user)
|
err := ctx.ReadJSON(&user)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// This check is only needed when your code could produce
|
// This check is only needed when your code could produce
|
||||||
// an invalid value for validation such as interface with nil
|
// an invalid value for validation such as interface with nil
|
||||||
|
|
Loading…
Reference in New Issue
Block a user