From 988e4f0a1c2802921375271bdc19f03650c024d2 Mon Sep 17 00:00:00 2001 From: Chris Wong Date: Sat, 25 Jan 2014 20:37:51 +1300 Subject: Uppercase numeric constants The following are renamed: * `min_value` => `MIN` * `max_value` => `MAX` * `bits` => `BITS` * `bytes` => `BYTES` Fixes #10010. --- src/libstd/comm/mod.rs | 4 ++-- src/libstd/comm/select.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/libstd/comm') diff --git a/src/libstd/comm/mod.rs b/src/libstd/comm/mod.rs index 26d67daf7c1..1281f3d6a5c 100644 --- a/src/libstd/comm/mod.rs +++ b/src/libstd/comm/mod.rs @@ -1,4 +1,4 @@ -// Copyright 2013 The Rust Project Developers. See the COPYRIGHT +// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // @@ -367,7 +367,7 @@ struct Packet { // All implementations -- the fun part /////////////////////////////////////////////////////////////////////////////// -static DISCONNECTED: int = int::min_value; +static DISCONNECTED: int = int::MIN; static RESCHED_FREQ: int = 200; impl Packet { diff --git a/src/libstd/comm/select.rs b/src/libstd/comm/select.rs index 6a10ac56a4e..c26cea29677 100644 --- a/src/libstd/comm/select.rs +++ b/src/libstd/comm/select.rs @@ -1,4 +1,4 @@ -// Copyright 2013 The Rust Project Developers. See the COPYRIGHT +// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // @@ -182,7 +182,7 @@ impl Select { assert!(amt > 0); let mut ready_index = amt; - let mut ready_id = uint::max_value; + let mut ready_id = uint::MAX; let mut iter = self.iter().enumerate(); // Acquire a number of blocking contexts, and block on each one @@ -242,7 +242,7 @@ impl Select { assert!(!(*packet).selecting.load(Relaxed)); } - assert!(ready_id != uint::max_value); + assert!(ready_id != uint::MAX); return ready_id; } } -- cgit 1.4.1-3-g733a5