Skip to content

Commit c2d9e99

Browse files
chore: Fix type
1 parent 2bcd4f8 commit c2d9e99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Update your existing handler signatures, by adding an `error` return type and ut
2020

2121
```go
2222
func addProduct(w http.ResponseWriter, r *http.Request) error {
23-
var p product
23+
var p product
2424
if err := errhandler.ParseJSON(r, &p); err != nil {
2525
return fmt.Errorf("parsing request json: %w", err)
2626
}
@@ -29,4 +29,4 @@ func addProduct(w http.ResponseWriter, r *http.Request) error {
2929

3030
return errhandler.SendJSON(w, p)
3131
}
32-
```
32+
```

0 commit comments

Comments
 (0)