From 106ca8a30a7f154af1fed16a5fce96fe996f0405 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Thu, 5 Feb 2015 09:20:12 +0100 Subject: [PATCH] Fix "fullscreen" example with latest rustc --- examples/fullscreen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/fullscreen.rs b/examples/fullscreen.rs index 30c9527b..3b9e2c1e 100644 --- a/examples/fullscreen.rs +++ b/examples/fullscreen.rs @@ -24,7 +24,7 @@ fn main() { print!("Please write the number of the monitor to use: "); let num = stdin().read_line().unwrap().as_slice().trim().parse() - .expect("Plase enter a number"); + .ok().expect("Please enter a number"); let monitor = glutin::get_available_monitors().nth(num).expect("Please enter a valid ID"); println!("Using {:?}", monitor.get_name());