Skip to content

Commit f7afd17

Browse files
fix: Typo in readme
1 parent 732610e commit f7afd17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Wrap Go's stdlib `http.HandlerFunc` using `errhandler.Wrap()`:
1313

1414
```go
1515
mux := http.NewServeMux()
16-
mux.Handle("GET /products", errhandler.Wrap(addProduct))
16+
mux.Handle("POST /products", errhandler.Wrap(addProduct))
1717
```
1818

1919
Update your existing handler signatures, by adding an `error` return type and utilizing the optional `errhandler.ParseJSON` and `errhandler.SendJSON` helper functions to reduce the amount of boilerplate code handlers require:

0 commit comments

Comments
 (0)