Skip to content

Commit 962b549

Browse files
Update httpapi/httpapi.go
Co-authored-by: Bryan <bryan@coder.com>
1 parent 323ed6e commit 962b549

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httpapi/httpapi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func Write(w http.ResponseWriter, status int, response Response) {
7979
}
8080

8181
// Read decodes JSON from the HTTP request into the value provided.
82-
// It uses go-validator to
82+
// It uses go-validator to validate the incoming request body.
8383
func Read(rw http.ResponseWriter, r *http.Request, value interface{}) bool {
8484
err := json.NewDecoder(r.Body).Decode(value)
8585
if err != nil {

0 commit comments

Comments
 (0)