aboutsummaryrefslogtreecommitdiffstats
path: root/src/cocoa
diff options
context:
space:
mode:
authorCam Jackson <camjackson89@gmail.com>2015-03-25 15:54:57 +1100
committerCam Jackson <camjackson89@gmail.com>2015-03-25 15:54:57 +1100
commit589c4d188a4f02a73d7f363d1b923427a3f2e973 (patch)
tree738ec48afaed58f3e053340f00cd497c4c95130d /src/cocoa
parent8a463f664302d90fbe31800ec25afadb1cf6d7c3 (diff)
downloadglutin-589c4d188a4f02a73d7f363d1b923427a3f2e973.tar.gz
glutin-589c4d188a4f02a73d7f363d1b923427a3f2e973.zip
Fix compilation by replacing "range" with ".." syntax
Diffstat (limited to 'src/cocoa')
-rw-r--r--src/cocoa/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cocoa/mod.rs b/src/cocoa/mod.rs
index 1da5ce1..5e13a77 100644
--- a/src/cocoa/mod.rs
+++ b/src/cocoa/mod.rs
@@ -419,7 +419,7 @@ impl Window {
let count: NSUInteger = msg_send()(screens, selector("count"));
let key = IdRef::new(NSString::alloc(nil).init_str("NSScreenNumber"));
let mut matching_screen: Option<id> = None;
- for i in range(0, count) {
+ for i in (0..count) {
let screen = msg_send()(screens, selector("objectAtIndex:"), i as NSUInteger);
let device_description = NSScreen::deviceDescription(screen);
let value = msg_send()(device_description, selector("objectForKey:"), *key);