Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
logica0419 authored Dec 23, 2023
1 parent ce11bfb commit 99f8ad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion json.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
type JSONValidateOpt[V any] func(body V) error

// WithJSONValidation decodes JSON body and validates it with opts
func WithJSONValidation[V any](opt ...JSONValidateOpt[V]) ValidateOpt {
func WithJSONValidation[V any](opts ...JSONValidateOpt[V]) ValidateOpt {
return func(res *http.Response) error {
var body V
if err := json.NewDecoder(res.Body).Decode(&body); err != nil {
Expand Down

0 comments on commit 99f8ad6

Please sign in to comment.