diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-01-10 08:33:27 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-01-10 08:33:27 +0100 |
commit | f72b09bcb7efee96b05dbcfc34b4a5fd72ef37aa (patch) | |
tree | eb5d69fa2deb0326a4dc43bddb1f4ff6be8c4051 /examples/fullscreen.rs | |
parent | 9d7dbf7eb039d5614976a184082163bc97a319c6 (diff) | |
parent | 469d0eafd1704d5e9a172adfc673708fc76923e9 (diff) | |
download | glutin-f72b09bcb7efee96b05dbcfc34b4a5fd72ef37aa.tar.gz glutin-f72b09bcb7efee96b05dbcfc34b4a5fd72ef37aa.zip |
Merge pull request #190 from tomaka/update-rustc
Update for rust alpha 1.0
Diffstat (limited to 'examples/fullscreen.rs')
-rw-r--r-- | examples/fullscreen.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/fullscreen.rs b/examples/fullscreen.rs index c77569f..7c2ece8 100644 --- a/examples/fullscreen.rs +++ b/examples/fullscreen.rs @@ -19,7 +19,7 @@ fn main() { // enumerating monitors let monitor = { for (num, monitor) in glutin::get_available_monitors().enumerate() { - println!("Monitor #{}: {}", num, monitor.get_name()); + println!("Monitor #{}: {:?}", num, monitor.get_name()); } print!("Please write the number of the monitor to use: "); @@ -27,7 +27,7 @@ fn main() { .expect("Plase enter a number"); let monitor = glutin::get_available_monitors().nth(num).expect("Please enter a valid ID"); - println!("Using {}", monitor.get_name()); + println!("Using {:?}", monitor.get_name()); monitor }; @@ -47,6 +47,6 @@ fn main() { context.draw_frame((0.0, 1.0, 0.0, 1.0)); window.swap_buffers(); - println!("{}", window.wait_events().collect::<Vec<glutin::Event>>()); + println!("{:?}", window.wait_events().collect::<Vec<glutin::Event>>()); } } |