aboutsummaryrefslogtreecommitdiff
path: root/src/lib/map.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-03-18 14:01:03 -0700
committerPatrick Walton <[email protected]>2011-03-18 14:01:03 -0700
commit0cf16e77ca5a0b9f9dfaaab4dfe253d7a9cc5cce (patch)
treedec1d851a353d9992cf58ceaf00e7099de38ad48 /src/lib/map.rs
parentAdd some mutable variants of vector functions to the standard library (diff)
downloadrust-0cf16e77ca5a0b9f9dfaaab4dfe253d7a9cc5cce.tar.xz
rust-0cf16e77ca5a0b9f9dfaaab4dfe253d7a9cc5cce.zip
Add "mutable?" to _vec in the standard library; fix callers
Diffstat (limited to 'src/lib/map.rs')
-rw-r--r--src/lib/map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/map.rs b/src/lib/map.rs
index 29e9ba5d..61d5ccf6 100644
--- a/src/lib/map.rs
+++ b/src/lib/map.rs
@@ -29,7 +29,7 @@ fn mk_hashmap[K, V](&hashfn[K] hasher, &eqfn[K] eqer) -> hashmap[K, V] {
}
fn make_buckets[K, V](uint nbkts) -> vec[mutable bucket[K, V]] {
- ret _vec.init_elt[mutable bucket[K, V]](nil[K, V], nbkts);
+ ret _vec.init_elt_mut[bucket[K, V]](nil[K, V], nbkts);
}
// Derive two hash functions from the one given by taking the upper