diff --git a/blog/content/second-edition/posts/12-async-await/index.md b/blog/content/second-edition/posts/12-async-await/index.md index 3cebb9c5..b74b4ae7 100644 --- a/blog/content/second-edition/posts/12-async-await/index.md +++ b/blog/content/second-edition/posts/12-async-await/index.md @@ -1327,7 +1327,7 @@ To wake the stored `Waker`, we add a call to `WAKER.wake()` in the `add_scancode pub(crate) add_scancode(scancode: u8) { if let Ok(queue) = SCANCODE_QUEUE.try_get() { - if let Err(_) = scancode_queue.push(scancode) { + if let Err(_) = queue.push(scancode) { println!("WARNING: scancode queue full; dropping keyboard input"); } else { WAKER.wake(); // new