We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01118be commit 2cc0a0eCopy full SHA for 2cc0a0e
src/libstd/map.rs
@@ -262,7 +262,7 @@ mod chained {
262
ret vec::to_mut(vec::from_elem(nchains, absent));
263
}
264
265
- fn mk<K: copy, V: copy>(hasher: hashfn<K>, eqer: eqfn<K>) -> t<K,V> {
+ fn mk<K, V: copy>(hasher: hashfn<K>, eqer: eqfn<K>) -> t<K,V> {
266
let initial_capacity: uint = 32u; // 2^5
267
let slf: t<K, V> = @{mut count: 0u,
268
mut chains: chains(initial_capacity),
@@ -282,7 +282,7 @@ Parameters:
282
hasher - The hash function for key type K
283
eqer - The equality function for key type K
284
*/
285
-fn hashmap<K: const copy, V: copy>(hasher: hashfn<K>, eqer: eqfn<K>)
+fn hashmap<K: const, V: copy>(hasher: hashfn<K>, eqer: eqfn<K>)
286
-> hashmap<K, V> {
287
chained::mk(hasher, eqer)
288
0 commit comments