diff --git a/examples/generic_pr/main.go b/examples/generic_pr/main.go index d9665af..109804d 100644 --- a/examples/generic_pr/main.go +++ b/examples/generic_pr/main.go @@ -20,7 +20,7 @@ func (r *RequestContext[T]) String() string { return fmt.Sprintf("%+v", r.ans) } -func (r *RequestContext[T]) Do() func(r *RequestContext[T]) *RequestContext[T] { +func (_ *RequestContext[T]) Do() func(r *RequestContext[T]) *RequestContext[T] { return func(r *RequestContext[T]) *RequestContext[T] { r.ans = *new(T) res, err := http.DefaultClient.Do(&r.req)