Skip to content

Commit 5f87b55

Browse files
committed
Fix example
1 parent bcdfbcb commit 5f87b55

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
@@ -56,7 +56,7 @@ var productEndpoint = &httpc.Endpoint[Product]{
5656
},
5757
Handlers: []httpc.Handler{
5858
// Decode the response JSON, but only if the response code is 200
59-
httpc.StatusHandler(httpc.StatusOK, httpc.JSONHandler()),
59+
httpc.StatusHandler(200, httpc.JSONHandler()),
6060
},
6161
}
6262
```

0 commit comments

Comments
 (0)