mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-24 00:30:29 +02:00
parent
30ae1f4f0d
commit
cab287849b
@ -51,7 +51,7 @@ fn main() {
|
|||||||
.get("Harry Potter and the Sorcerer's Stone")
|
.get("Harry Potter and the Sorcerer's Stone")
|
||||||
.unwrap_or(&336);
|
.unwrap_or(&336);
|
||||||
let pc2 = page_counts
|
let pc2 = page_counts
|
||||||
.entry("The Hunger Games".to_string())
|
.entry("The Hunger Games")
|
||||||
.or_insert(374);
|
.or_insert(374);
|
||||||
```
|
```
|
||||||
- Unlike `vec!`, there is unfortunately no standard `hashmap!` macro.
|
- Unlike `vec!`, there is unfortunately no standard `hashmap!` macro.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user