Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool authored Jun 11, 2024
1 parent 8707741 commit 1763582
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorials/fetch.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand All @@ -136,4 +136,4 @@ class $modify(MenuLayer) {
};
```

Now open your game (with the developer console enabled) and check to see if your request works!
Now open your game (with the developer console enabled) and check to see if your request works!

0 comments on commit 1763582

Please sign in to comment.