From 3e04970659dc0cdedf7af592afe98e398df2dbef Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 8 Nov 2020 15:57:54 +0100 Subject: [PATCH] Fix example in readme. --- README.adoc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README.adoc b/README.adoc index aacd8ed..e15763b 100644 --- a/README.adoc +++ b/README.adoc @@ -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; + } } --------------------------------------------------------------------------------