Skip to content

Commit d8fbff6

Browse files
authored
fix: change resty.GET to resty.MethodGet in doc comment (#803)
1 parent 30477b3 commit d8fbff6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

request.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ func (r *Request) Patch(url string) (*Response, error) {
905905
// for current `Request`.
906906
//
907907
// req := client.R()
908-
// req.Method = resty.GET
908+
// req.Method = resty.MethodGet
909909
// req.URL = "http://httpbin.org/get"
910910
// resp, err := req.Send()
911911
func (r *Request) Send() (*Response, error) {
@@ -915,7 +915,7 @@ func (r *Request) Send() (*Response, error) {
915915
// Execute method performs the HTTP request with given HTTP method and URL
916916
// for current `Request`.
917917
//
918-
// resp, err := client.R().Execute(resty.GET, "http://httpbin.org/get")
918+
// resp, err := client.R().Execute(resty.MethodGet, "http://httpbin.org/get")
919919
func (r *Request) Execute(method, url string) (*Response, error) {
920920
var addrs []*net.SRV
921921
var resp *Response

0 commit comments

Comments
 (0)