Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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.

authored by greymoth · committed by GitHub · parent 03f3e42 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:context.go+1 added-1 removed
785 unmodified lines
786func (c *Context) BindJSON(obj any) error {787 return c.MustBindWith(obj, binding.JSON)788}789790// BindXML is a shortcut for c.MustBindWith(obj, binding.BindXML).790// BindXML is a shortcut for c.MustBindWith(obj, binding.XML).791func (c *Context) BindXML(obj any) error {792 return c.MustBindWith(obj, binding.XML)793}794
745 unmodified lines