瀏覽代碼

[Cleanup] Typo in context.go

Fixes typo from 'If Parses' to 'It parses'
Kamron Batman 9 年之前
父節點
當前提交
70c104e16c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      context.go

+ 1 - 1
context.go

@@ -279,7 +279,7 @@ func (c *Context) GetPostForm(key string) (string, bool) {
 // 		"application/json" --> JSON binding
 // 		"application/json" --> JSON binding
 // 		"application/xml"  --> XML binding
 // 		"application/xml"  --> XML binding
 // otherwise --> returns an error
 // otherwise --> returns an error
-// If Parses the request's body as JSON if Content-Type == "application/json" using JSON or XML  as a JSON input.
+// It parses the request's body as JSON if Content-Type == "application/json" using JSON or XML as a JSON input.
 // It decodes the json payload into the struct specified as a pointer.
 // It decodes the json payload into the struct specified as a pointer.
 // Like ParseBody() but this method also writes a 400 error if the json is not valid.
 // Like ParseBody() but this method also writes a 400 error if the json is not valid.
 func (c *Context) Bind(obj interface{}) error {
 func (c *Context) Bind(obj interface{}) error {