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/result.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd/result.rs') diff --git a/src/libstd/result.rs b/src/libstd/result.rs index 1a4e6d5bcfd..62049e8b4c9 100644 --- a/src/libstd/result.rs +++ b/src/libstd/result.rs @@ -1,4 +1,4 @@ -// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT +// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // @@ -227,7 +227,7 @@ impl fmt::Default for Result { /// checking for overflow: /// /// fn inc_conditionally(x: uint) -> Result { -/// if x == uint::max_value { return Err("overflow"); } +/// if x == uint::MAX { return Err("overflow"); } /// else { return Ok(x+1u); } /// } /// let v = [1u, 2, 3]; -- cgit 1.4.1-3-g733a5