Skip to content

Commit

Permalink
fix: change resty.GET to resty.MethodGet in doc comment (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
autopp authored Jul 17, 2024
1 parent 30477b3 commit d8fbff6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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
Expand Down

0 comments on commit d8fbff6

Please sign in to comment.