From 6a22e913a94337d24c32728ff3d4656a66bb0eaa Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Mon, 8 Mar 2021 17:04:58 -0500 Subject: [PATCH] Tidy `get_each_mut` documentation and add a changelog entry --- CHANGELOG.md | 2 ++ src/map.rs | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d127a5608..d5dd47e50b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## Added - Added safe `try_insert_no_grow` method to `RawTable`. (#229) - Implemented `Default` for `RawTable`. (#237) +- Added new safe methods `RawTable::get_each_mut`, `HashMap::get_each_mut`, and + `HashMap::get_each_key_value_mut`. (#239) ## Changed - The minimum Rust version has been bumped to 1.49.0. (#230) diff --git a/src/map.rs b/src/map.rs index 4796410f68..717eac6062 100644 --- a/src/map.rs +++ b/src/map.rs @@ -1107,6 +1107,8 @@ where /// /// This method is available only if the `nightly` feature is enabled. /// + /// # Examples + /// /// ``` /// use hashbrown::{HashMap, UnavailableMutError}; /// @@ -1164,6 +1166,8 @@ where /// /// This method is available only if the `nightly` feature is enabled. /// + /// # Examples + /// /// ``` /// use hashbrown::{HashMap, UnavailableMutError}; ///