Add "mutable?" to _vec in the standard library; fix callers

This commit is contained in:
Patrick Walton 2011-03-18 14:01:03 -07:00
parent 368eb4bab6
commit 0cf16e77ca
4 changed files with 20 additions and 19 deletions

View file

@ -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