Skip to content

Commit 037fe59

Browse files
committed
Merge pull request rust-lang#1012 from robinst/patch-1
Fix typo in 0921-entry_v3.md
2 parents e4a774f + 0e44ae6 commit 037fe59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/0921-entry_v3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ let val = map.entry(key).or_insert_with(|| expensive(big, data));
9999
Look at all that ergonomics. *Look at it*. This pushes us more into the "one right way"
100100
territory, since this is unambiguously clearer and easier than a full `match` or abusing Result.
101101
Novices don't really need to learn the entry API at all with this. They can just learn the
102-
`.entry(key).default(value)` incantation to start, and work their way up to more complex
102+
`.entry(key).or_insert(value)` incantation to start, and work their way up to more complex
103103
usage later.
104104

105105
Oh hey look this entire RFC is already implemented with all of `rust-lang/rust`'s `entry`

0 commit comments

Comments
 (0)