aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-02-05 09:20:12 +0100
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-02-05 09:20:12 +0100
commit106ca8a30a7f154af1fed16a5fce96fe996f0405 (patch)
tree9b8e9c1472da65ed28f47a9359321c83080702ee /examples
parent03e9d78b3a0b14c14c786f7417c8b5c4db22d644 (diff)
downloadglutin-106ca8a30a7f154af1fed16a5fce96fe996f0405.tar.gz
glutin-106ca8a30a7f154af1fed16a5fce96fe996f0405.zip
Fix "fullscreen" example with latest rustc
Diffstat (limited to 'examples')
-rw-r--r--examples/fullscreen.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/fullscreen.rs b/examples/fullscreen.rs
index 30c9527..3b9e2c1 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());