From 161a82e433fbfbc0bd57a4d951ac37656a8a30f6 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 27 Aug 2012 14:22:25 -0700 Subject: Camel case various core constructors --- src/libcore/send_map.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libcore/send_map.rs') 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( + fn LinearMap( +hashfn: pure fn~(x: &K) -> uint, +eqfn: pure fn~(x: &K, y: &K) -> bool) -> LinearMap { @@ -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() -> LinearMap { - return linear_map(uint_hash, uint_eq); + return LinearMap(uint_hash, uint_eq); } #[test] -- cgit 1.4.1-3-g733a5