aboutsummaryrefslogtreecommitdiffstats
path: root/examples/fullscreen.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-01-10 08:33:27 +0100
committertomaka <pierre.krieger1708@gmail.com>2015-01-10 08:33:27 +0100
commitf72b09bcb7efee96b05dbcfc34b4a5fd72ef37aa (patch)
treeeb5d69fa2deb0326a4dc43bddb1f4ff6be8c4051 /examples/fullscreen.rs
parent9d7dbf7eb039d5614976a184082163bc97a319c6 (diff)
parent469d0eafd1704d5e9a172adfc673708fc76923e9 (diff)
downloadglutin-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.rs6
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>>());
}
}