Merge pull request #253 from tomaka/update

Fix "fullscreen" example with latest rustc
This commit is contained in:
tomaka 2015-02-05 09:33:46 +01:00
commit a3cd89c2dc

View file

@ -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());