Sfoglia il codice sorgente

Merge pull request #576 from kamronbatman/patch-1

[Cleanup] Typo in context.go
Javier Provecho Fernandez 9 anni fa
parent
commit
dc85514303
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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/xml"  --> XML binding
 // 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.
 // Like ParseBody() but this method also writes a 400 error if the json is not valid.
 func (c *Context) Bind(obj interface{}) error {