Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dtwitty authored Jun 19, 2024
1 parent 94fab85 commit e05d078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/maps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub trait Map {
/// Inserts a value into the map. Returns the previous value if it existed.
fn insert(&mut self, key: Self::Key, value: Self::Val) -> Option<Self::Val>;

/// Inserts a value into the map if it does not exist. Returns a mutable reference to (maybe new) value.
/// Inserts a value into the map if it does not exist. Returns a mutable reference to the (maybe new) value.
fn get_or_insert<F: Fn() -> Self::Val>(
&mut self,
key: Self::Key,
Expand Down

0 comments on commit e05d078

Please sign in to comment.