Skip to content

Commit 84e1eb5

Browse files
author
Mark Lodato
committed
Removes use of deprecated method in example
1 parent cde2f7d commit 84e1eb5

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)