We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f4f258 commit 6736173Copy full SHA for 6736173
src/ini.rs
@@ -608,7 +608,7 @@ impl Ini {
608
///let val = config.remove_key("anothersection", "updog").unwrap().unwrap();
609
///assert_eq!(val, String::from("differentdog")); // with the last section removed, our map is now empty!
610
///```
611
- ///Returns `Some(section_map)` if the section exists or else, `None`.
+ ///Returns `Some(Option<String>)` if the value exists or else, `None`.
612
pub fn remove_key(&mut self, section: &str, key: &str) -> Option<Option<String>> {
613
self.map.get_mut(§ion.to_lowercase())?.remove(&key.to_lowercase())
614
}
0 commit comments