diff options
Diffstat (limited to 'src/libcore/send_map.rs')
| -rw-r--r-- | src/libcore/send_map.rs | 6 |
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] |
