From faa64cd1de9012876ad43dda73ade6379407f981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Luis=20Fran=C3=A7a?= Date: Wed, 1 Mar 2023 14:11:22 -0300 Subject: [PATCH] Update binding.md Adjust function Bind --- 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 968f278c..0a6ebca7 100644 --- a/website/content/guide/binding.md +++ b/website/content/guide/binding.md @@ -245,7 +245,7 @@ type CustomBinder struct {} func (cb *CustomBinder) Bind(i interface{}, c echo.Context) (err error) { // You may use default binder db := new(echo.DefaultBinder) - if err := db.Bind(i, c); err != echo.ErrUnsupportedMediaType { + if err = db.Bind(i, c); err != echo.ErrUnsupportedMediaType { return }