We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cde2f7d + 84e1eb5 commit 34b5306Copy full SHA for 34b5306
src/lib.rs
@@ -63,8 +63,8 @@
63
//! assert_eq!(book_reviews_r.get("Grimms' Fairy Tales").map(|rs| rs.len()), Some(2));
64
//!
65
//! // oops, this review has a lot of spelling mistakes, let's delete it.
66
-//! // empty deletes *all* reviews (though in this case, just one)
67
-//! book_reviews_w.empty("The Adventures of Sherlock Holmes");
+//! // remove_entry deletes *all* reviews (though in this case, just one)
+//! book_reviews_w.remove_entry("The Adventures of Sherlock Holmes");
68
//! // but again, it's not visible to readers until we refresh
69
//! assert_eq!(book_reviews_r.get("The Adventures of Sherlock Holmes").map(|rs| rs.len()), Some(1));
70
//! book_reviews_w.refresh();
0 commit comments