1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

doc: more Result fixes

This commit is contained in:
Alexander Medvednikov
2022-10-24 16:26:19 +03:00
parent 2c9e890c3d
commit 690b2c0b9d
2 changed files with 11 additions and 11 deletions

View File

@ -31,7 +31,7 @@ pub mut:
allow_redirect bool = true // whether to allow redirect
}
pub fn new_request(method Method, url_ string, data string) !Request {
pub fn new_request(method Method, url_ string, data string) ?Request {
url := if method == .get && !url_.contains('?') { url_ + '?' + data } else { url_ }
// println('new req() method=$method url="$url" dta="$data"')
return Request{