Skip to content

Commit

Permalink
doc: Rename mention of insert_or_update_with_key
Browse files Browse the repository at this point in the history
As far as I can tell, these docs were meant to refer to update_with_key.
  • Loading branch information
sophiebits authored and catamorphism committed Dec 28, 2012
1 parent dda12f8 commit 5910773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/map.rs
Expand Up @@ -54,7 +54,7 @@ pub trait Map<K:Eq IterBytes Hash Copy, V: Copy> {
* Add a value to the map.
*
* If the map contains a value for the key, use the function to
* set a new value. (Like `insert_or_update_with_key`, but with a
* set a new value. (Like `update_with_key`, but with a
* function of only values.)
*/
fn update(key: K, newval: V, ff: fn(V, V) -> V) -> bool;
Expand Down

0 comments on commit 5910773

Please sign in to comment.