From e0fe8ab719e869e5259cb04e0840c04dd73e6065 Mon Sep 17 00:00:00 2001 From: autopp Date: Tue, 9 Jul 2024 22:31:14 +0900 Subject: [PATCH] fix: change resty.GET to resty.MethodGet in doc comment --- request.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/request.go b/request.go index 8cc0180f..336925d5 100644 --- a/request.go +++ b/request.go @@ -905,7 +905,7 @@ func (r *Request) Patch(url string) (*Response, error) { // for current `Request`. // // req := client.R() -// req.Method = resty.GET +// req.Method = resty.MethodGet // req.URL = "http://httpbin.org/get" // resp, err := req.Send() func (r *Request) Send() (*Response, error) { @@ -915,7 +915,7 @@ func (r *Request) Send() (*Response, error) { // Execute method performs the HTTP request with given HTTP method and URL // for current `Request`. // -// resp, err := client.R().Execute(resty.GET, "http://httpbin.org/get") +// resp, err := client.R().Execute(resty.MethodGet, "http://httpbin.org/get") func (r *Request) Execute(method, url string) (*Response, error) { var addrs []*net.SRV var resp *Response