Example missed mut for the map.

This commit is contained in:
Daniel 2019-08-11 17:19:55 +01:00 committed by GitHub
parent d110ab3e47
commit 12189aa075
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,7 @@ works on up to 8 bytes at a time.
```rust
use rustc_hash::FxHashMap;
let map: FxHashMap<u32, u32> = FxHashMap::default();
let mut map: FxHashMap<u32, u32> = FxHashMap::default();
map.insert(22, 44);
```