Skip to content
Myr

[Cleanup] Typo in context.go

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

Fixes typo from 'If Parses' to 'It parses'

authored by Kamron Batman · committed by Kamron Batman · parent 4a6bc4a · 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
277 unmodified lines
278// Depending the "Content-Type" header different bindings are used:279// "application/json" --> JSON binding280// "application/xml" --> XML binding281// otherwise --> returns an error282// If Parses the request's body as JSON if Content-Type == "application/json" using JSON or XML as a JSON input.282// It parses the request's body as JSON if Content-Type == "application/json" using JSON or XML as a JSON input.283// It decodes the json payload into the struct specified as a pointer.284// Like ParseBody() but this method also writes a 400 error if the json is not valid.285func (c *Context) Bind(obj interface{}) error {286 b := binding.Default(c.Request.Method, c.ContentType())
276 unmodified lines