mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 18:54:32 -06:00
Wrap at 80 oops
This commit is contained in:
@@ -130,7 +130,10 @@ existing value. Let's look at how to do each of these!
|
||||
|
||||
#### Overwriting a Value
|
||||
|
||||
If we insert a key and a value, then insert that key with a different value, the value associated with that key will be replaced. Even though this code calls `insert` twice, the hash map will only contain one key/value pair, since we're inserting with the key `1` both times:
|
||||
If we insert a key and a value, then insert that key with a different value,
|
||||
the value associated with that key will be replaced. Even though this code
|
||||
calls `insert` twice, the hash map will only contain one key/value pair, since
|
||||
we're inserting with the key `1` both times:
|
||||
|
||||
```rust
|
||||
use std::collections::HashMap;
|
||||
|
||||
Reference in New Issue
Block a user