Skip to content

Commit f22ba67

Browse files
iivansmaliakoualdas
authored andcommitted
documentation: changed description for Bind() method of Context interface. Because Bind()` binds not only request body, but also path and query params
1 parent ec642f7 commit f22ba67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

context.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ type (
100100
// Set saves data in the context.
101101
Set(key string, val interface{})
102102

103-
// Bind binds the request body into provided type `i`. The default binder
104-
// does it based on Content-Type header.
103+
// Bind binds path params, query params and the request body into provided type `i`. The default binder
104+
// binds body based on Content-Type header.
105105
Bind(i interface{}) error
106106

107107
// Validate validates provided `i`. It is usually called after `Context#Bind()`.

0 commit comments

Comments
 (0)