Skip to content

Commit

Permalink
Merge pull request #556 from ageron/patch-1
Browse files Browse the repository at this point in the history
Fix typos "beened"=>"been" and "run()"=>"resize()"
  • Loading branch information
sotrh authored Jul 2, 2024
2 parents 66aea32 + 0c38bb7 commit 51ac9d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/beginner/tutorial2-surface/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ Now that we've configured our surface properly, we can add these new fields at t

Since our `State::new()` method is async, we need to change `run()` to be async as well so that we can await it.

Our `window` has beened moved to the State instance, we will need to update our `event_loop` to reflect this.
Our `window` has been moved to the State instance, we will need to update our `event_loop` to reflect this.

```rust
#[cfg_attr(target_arch = "wasm32", wasm_bindgen(start))]
Expand Down Expand Up @@ -320,7 +320,7 @@ pub fn resize(&mut self, new_size: winit::dpi::PhysicalSize<u32>) {

There's nothing different here from the initial `surface` configuration, so I won't get into it.

We call this method `run()` in the event loop for the following events.
We call this method `resize()` in the event loop for the following events.

```rust
match event {
Expand Down

0 comments on commit 51ac9d4

Please sign in to comment.