mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
net.http: correct Response.status()
method comment, to indicate returning of a Status
enum field, instead of struct (#21735)
This commit is contained in:
parent
5f33946ef0
commit
094c30c347
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ pub fn (r Response) cookies() []Cookie {
|
||||||
return cookies
|
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 {
|
pub fn (r Response) status() Status {
|
||||||
return status_from_int(r.status_code)
|
return status_from_int(r.status_code)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue