diff --git a/docs/beginner/tutorial2-swapchain/README.md b/docs/beginner/tutorial2-swapchain/README.md index a40eef4c..530d7210 100644 --- a/docs/beginner/tutorial2-swapchain/README.md +++ b/docs/beginner/tutorial2-swapchain/README.md @@ -301,8 +301,8 @@ event_loop.run(move |event, _, control_flow| { match event { // ... Event::RedrawRequested(_) => { - block_on(state.update()); - block_on(state.render()); + state.update(); + state.render(); } Event::MainEventsCleared => { // RedrawRequested will only trigger once, unless we manually