Skip to content

Commit

Permalink
fixed #546
Browse files Browse the repository at this point in the history
  • Loading branch information
sotrh committed May 18, 2024
1 parent ce95722 commit a48836f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/beginner/tutorial1-window/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub fn run() {
let event_loop = EventLoop::new().unwrap();
let window = WindowBuilder::new().build(&event_loop).unwrap();

event_loop.run(move |event, _, control_flow| match event {
event_loop.run(move |event, control_flow| match event {
Event::WindowEvent {
ref event,
window_id,
Expand All @@ -63,7 +63,7 @@ pub fn run() {
..
},
..
} => *control_flow = ControlFlow::Exit,
} => control_flow.exit(),
_ => {}
},
_ => {}
Expand Down

0 comments on commit a48836f

Please sign in to comment.