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!