Skip to content

Commit

Permalink
Use wait_events_unbuffered in example
Browse files Browse the repository at this point in the history
  • Loading branch information
aloucks committed Jul 21, 2019
1 parent 65fad40 commit b35703f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/unbuffered_events.rs
Expand Up @@ -39,7 +39,7 @@ fn main() {
});

while !window.should_close() {
glfw.poll_events_unbuffered(|window_id, event| {
glfw.wait_events_unbuffered(|window_id, event| {
// Multiple windows may be identified by their `window_id`
assert_eq!(window.window_id(), window_id);

Expand Down

0 comments on commit b35703f

Please sign in to comment.