From 1763582f026333701c0ded7bef8e0c8987876abb Mon Sep 17 00:00:00 2001 From: mat <26722564+matcool@users.noreply.github.com> Date: Tue, 11 Jun 2024 12:36:29 -0300 Subject: [PATCH] fix compile error --- tutorials/fetch.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/fetch.md b/tutorials/fetch.md index a998607..99fe418 100644 --- a/tutorials/fetch.md +++ b/tutorials/fetch.md @@ -120,7 +120,7 @@ class $modify(MenuLayer) { m_fields->m_listener.bind([] (web::WebTask::Event* e) { if (web::WebResponse* res = e->getValue()) { - log::info("{}", res->string()->unwrapOr("Uh oh!")); + log::info("{}", res->string().unwrapOr("Uh oh!")); } else if (web::WebProgress* p = e->getProgress()) { log::info("progress: {}", p->downloadProgress().value_or(0.f)); } else if (e->isCancelled()) { @@ -136,4 +136,4 @@ class $modify(MenuLayer) { }; ``` -Now open your game (with the developer console enabled) and check to see if your request works! \ No newline at end of file +Now open your game (with the developer console enabled) and check to see if your request works!