Skip to content

Commit 34b5306

Browse files
authored
Merge pull request #64 from mlodato517/remove-deprecated-methods-in-examples
Removes use of deprecated method in example
2 parents cde2f7d + 84e1eb5 commit 34b5306

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
//! assert_eq!(book_reviews_r.get("Grimms' Fairy Tales").map(|rs| rs.len()), Some(2));
6464
//!
6565
//! // 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");
66+
//! // remove_entry deletes *all* reviews (though in this case, just one)
67+
//! book_reviews_w.remove_entry("The Adventures of Sherlock Holmes");
6868
//! // but again, it's not visible to readers until we refresh
6969
//! assert_eq!(book_reviews_r.get("The Adventures of Sherlock Holmes").map(|rs| rs.len()), Some(1));
7070
//! book_reviews_w.refresh();

0 commit comments

Comments
 (0)