diff --git a/website/content/guide/binding.md b/website/content/guide/binding.md index 5be45a08..d6051b5b 100644 --- a/website/content/guide/binding.md +++ b/website/content/guide/binding.md @@ -81,7 +81,7 @@ type User struct { e.POST("/users", func(c echo.Context) (err error) { u := new(User) if err = c.Bind(u); err != nil { - return + return err } // To avoid security flaws try to avoid passing bound structs directly to other methods // if these structs contain fields that should not be bindable.