diff options
| author | Patrick Walton <[email protected]> | 2011-03-18 14:01:03 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-03-18 14:01:03 -0700 |
| commit | 0cf16e77ca5a0b9f9dfaaab4dfe253d7a9cc5cce (patch) | |
| tree | dec1d851a353d9992cf58ceaf00e7099de38ad48 /src/lib/map.rs | |
| parent | Add some mutable variants of vector functions to the standard library (diff) | |
| download | rust-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.rs | 2 |
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 |