Fix example in readme.

This commit is contained in:
tastytea 2020-11-08 15:57:54 +01:00
parent c795d06a7f
commit 3e04970659
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 8 additions and 5 deletions

View File

@ -17,12 +17,15 @@ the other wrappers are either incomplete or unmaintained as well.
namespace cw = curl_wrapper;
cw::CURLWrapper curl;
const auto answer{curl.make_http_request(cw::http_method::GET,
"http://example.com/")};
if (answer)
int main()
{
std::cout << answer;
cw::CURLWrapper curl;
const auto answer{curl.make_http_request(cw::http_method::GET,
"http://example.com/")};
if (answer)
{
std::cout << answer;
}
}
--------------------------------------------------------------------------------