Skip to content

Commit

Permalink
net.http: correct Response.status() method comment, to indicate ret…
Browse files Browse the repository at this point in the history
…urning of a `Status` enum field, instead of struct (vlang#21735)
  • Loading branch information
carlosaherrera authored Jun 26, 2024
1 parent 5f33946 commit 094c30c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/net/http/response.v
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pub fn (r Response) cookies() []Cookie {
return cookies
}

// status parses the status_code into a Status struct
// status parses the status_code and returns a corresponding enum field of Status
pub fn (r Response) status() Status {
return status_from_int(r.status_code)
}
Expand Down

0 comments on commit 094c30c

Please sign in to comment.