echo icon indicating copy to clipboard operation
echo copied to clipboard

Comment on Context.Bind is confusing

Open zzJinux opened this issue 2 years ago • 0 comments

Issue Description

Comment on Context.Bind says: "Bind binds the request body into..."

https://github.com/labstack/echo/blob/f36d5662fbb1850f03c9ac78f02a699a492ecc2d/context.go#L103-L105

... while DefaultBinder.Bind says another: "Binding is done in following order: 1) ... 2) ... 3) ...

https://github.com/labstack/echo/blob/f36d5662fbb1850f03c9ac78f02a699a492ecc2d/bind.go#L107-L110

I think the comment on Context.Bind is the one that requires correction, am I right?

Checklist

  • [x] Dependencies installed
  • [x] No typos
  • [x] Searched existing issues and docs

Version/commit

v4.10.0

zzJinux avatar Jan 26 '23 17:01 zzJinux