about summary refs log tree commit diff
path: root/src/libcore/send_map.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-08-27 14:22:25 -0700
committerBrian Anderson <banderson@mozilla.com>2012-08-27 17:22:18 -0700
commit161a82e433fbfbc0bd57a4d951ac37656a8a30f6 (patch)
treec59e3d6a32f471299a8fde09506ebf6cff8f44db /src/libcore/send_map.rs
parent4ba9fdd3627869f04ee39d6146023df822e0936e (diff)
Camel case various core constructors
Diffstat (limited to 'src/libcore/send_map.rs')
-rw-r--r--src/libcore/send_map.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/send_map.rs b/src/libcore/send_map.rs
index 4166d556402..19d87980c8c 100644
--- a/src/libcore/send_map.rs
+++ b/src/libcore/send_map.rs
@@ -39,7 +39,7 @@ mod linear {
         ((capacity as float) * 3. / 4.) as uint
     }
 
-    fn linear_map<K,V>(
+    fn LinearMap<K,V>(
         +hashfn: pure fn~(x: &K) -> uint,
         +eqfn: pure fn~(x: &K, y: &K) -> bool) -> LinearMap<K,V> {
 
@@ -338,13 +338,13 @@ mod linear {
 #[test]
 mod test {
 
-    import linear::{LinearMap, linear_map};
+    import linear::LinearMap;
 
     pure fn uint_hash(x: &uint) -> uint { *x }
     pure fn uint_eq(x: &uint, y: &uint) -> bool { *x == *y }
 
     fn int_linear_map<V>() -> LinearMap<uint,V> {
-        return linear_map(uint_hash, uint_eq);
+        return LinearMap(uint_hash, uint_eq);
     }
 
     #[test]