Skip to content

Commit

Permalink
fix: fix typo for c.ShouldBindBodyWithPlain comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kingcanfish committed Oct 6, 2024
1 parent f05f966 commit 9da23c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ func (c *Context) ShouldBindBodyWithTOML(obj any) error {
return c.ShouldBindBodyWith(obj, binding.TOML)
}

// ShouldBindBodyWithJSON is a shortcut for c.ShouldBindBodyWith(obj, binding.JSON).
// ShouldBindBodyWithPlain is a shortcut for c.ShouldBindBodyWith(obj, binding.Plain).
func (c *Context) ShouldBindBodyWithPlain(obj any) error {
return c.ShouldBindBodyWith(obj, binding.Plain)
}
Expand Down

0 comments on commit 9da23c6

Please sign in to comment.