From 3861c625d9c6250a1ee4c7f6c41e6901fe1dba78 Mon Sep 17 00:00:00 2001 From: boosh Date: Tue, 18 May 2021 08:01:02 +0000 Subject: [PATCH] Update binding.md --- website/content/guide/binding.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.