about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-07-26 14:42:44 -0700
committerPatrick Walton <pcwalton@mimiga.net>2012-07-26 14:43:44 -0700
commit1dd8acd56acc189db2c0bb3266536d35646380b4 (patch)
tree0db1a397edd40c8fe75ffcfb7673c8203be61812 /src/libstd
parentd19b915bc40d36cdf9866bfd3cf160ddabc7cc9d (diff)
core: Mark a bunch of numeric functions as pure
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/cmp.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/cmp.rs b/src/libstd/cmp.rs
index a89148ecec9..f74cbba23ce 100644
--- a/src/libstd/cmp.rs
+++ b/src/libstd/cmp.rs
@@ -2,24 +2,24 @@
 
 const fuzzy_epsilon: float = 1.0e-6;
 
-iface fuzzy_eq {
-    fn fuzzy_eq(&&other: self) -> bool;
+trait fuzzy_eq {
+    pure fn fuzzy_eq(&&other: self) -> bool;
 }
 
 impl fuzzy_eq of fuzzy_eq for float {
-    fn fuzzy_eq(&&other: float) -> bool {
+    pure fn fuzzy_eq(&&other: float) -> bool {
         ret float::abs(self - other) < fuzzy_epsilon;
     }
 }
 
 impl fuzzy_eq of fuzzy_eq for f32 {
-    fn fuzzy_eq(&&other: f32) -> bool {
+    pure fn fuzzy_eq(&&other: f32) -> bool {
         ret f32::abs(self - other) < (fuzzy_epsilon as f32);
     }
 }
 
 impl fuzzy_eq of fuzzy_eq for f64 {
-    fn fuzzy_eq(&&other: f64) -> bool {
+    pure fn fuzzy_eq(&&other: f64) -> bool {
         ret f64::abs(self - other) < (fuzzy_epsilon as f64);
     }
 }