docs: fix BindXML comment referencing nonexistent binding.BindXML (#4717)

The doc comment on line 790 read:
  "BindXML is a shortcut for c.MustBindWith(obj, binding.BindXML)."

`binding.BindXML` does not exist. The correct symbol is `binding.XML`
(defined in binding/binding.go), which is also what the implementation
uses. All sibling methods (BindJSON, BindYAML, BindTOML, etc.) already
reference the correct symbol in their comments.
This commit is contained in:
greymoth 2026-06-27 01:48:16 +09:00 committed by GitHub
parent 03f3e420a3
commit 34dac209ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -787,7 +787,7 @@ func (c *Context) BindJSON(obj any) error {
return c.MustBindWith(obj, binding.JSON)
}
// BindXML is a shortcut for c.MustBindWith(obj, binding.BindXML).
// BindXML is a shortcut for c.MustBindWith(obj, binding.XML).
func (c *Context) BindXML(obj any) error {
return c.MustBindWith(obj, binding.XML)
}