Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 70c104e

Browse files
committed
[Cleanup] Typo in context.go
Fixes typo from 'If Parses' to 'It parses'
1 parent 4a6bc4a commit 70c104e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ func (c *Context) GetPostForm(key string) (string, bool) {
279279
// "application/json" --> JSON binding
280280
// "application/xml" --> XML binding
281281
// otherwise --> returns an error
282-
// 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.
283283
// It decodes the json payload into the struct specified as a pointer.
284284
// Like ParseBody() but this method also writes a 400 error if the json is not valid.
285285
func (c *Context) Bind(obj interface{}) error {

0 commit comments

Comments
 (0)