From ec44719d2cd9bf542959db2910480b9227946829 Mon Sep 17 00:00:00 2001 From: runbmp Date: Fri, 16 Aug 2019 10:52:42 -0600 Subject: [PATCH] Fix example by adding RawScreen to use declaration (#193) --- docs/mdbook/src/input.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/mdbook/src/input.md b/docs/mdbook/src/input.md index 70c4fa1..2c645fa 100644 --- a/docs/mdbook/src/input.md +++ b/docs/mdbook/src/input.md @@ -94,7 +94,7 @@ As you see, we check if the `KeyEvent::Esc` was pressed, if that's true we stop _final code_ ```rust use std::{thread, time::Duration}; -use crossterm::{input, InputEvent, KeyEvent}; +use crossterm::{input, InputEvent, KeyEvent, RawScreen}; fn main() { println!("Press 'ESC' to quit.");