net.http: correct Response.status() method comment, to indicate returning of a Status enum field, instead of struct (#21735)

This commit is contained in:
FNEOSLDI 2024-06-25 23:45:16 -05:00 committed by GitHub
parent 5f33946ef0
commit 094c30c347
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
}