about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-02-11 23:52:40 -0800
committerBrian Anderson <banderson@mozilla.com>2012-02-11 23:52:40 -0800
commit3bdb627b5dc9924fbc539a1afc60bf8d280e5388 (patch)
tree4b65722875321c6908ff0938646958b78edf9f34
parent910c6a5df8623e3fb18404dfa292dcbc8d930672 (diff)
downloadrust-3bdb627b5dc9924fbc539a1afc60bf8d280e5388.tar.gz
rust-3bdb627b5dc9924fbc539a1afc60bf8d280e5388.zip
core: Make uint::min/max pure
-rw-r--r--src/libcore/uint.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/uint.rs b/src/libcore/uint.rs
index cd1bf7ea555..c5019aff490 100644
--- a/src/libcore/uint.rs
+++ b/src/libcore/uint.rs
@@ -25,14 +25,14 @@ const max_value: uint = 0u - 1u;
 /*
 Function: max
 */
-fn max(x: uint, y: uint) -> uint {
+pure fn max(x: uint, y: uint) -> uint {
     if x > y { x } else { y }
 }
 
 /*
 Function: min
 */
-fn min(x: uint, y: uint) -> uint {
+pure fn min(x: uint, y: uint) -> uint {
     if x < y { x } else { y }
 }