Skip to content

Commit 5910773

Browse files
sophiebitscatamorphism
authored andcommitted
doc: Rename mention of insert_or_update_with_key
As far as I can tell, these docs were meant to refer to update_with_key.
1 parent dda12f8 commit 5910773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub trait Map<K:Eq IterBytes Hash Copy, V: Copy> {
5454
* Add a value to the map.
5555
*
5656
* If the map contains a value for the key, use the function to
57-
* set a new value. (Like `insert_or_update_with_key`, but with a
57+
* set a new value. (Like `update_with_key`, but with a
5858
* function of only values.)
5959
*/
6060
fn update(key: K, newval: V, ff: fn(V, V) -> V) -> bool;

0 commit comments

Comments
 (0)