File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
liballoc/collections/btree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,9 @@ use self::Entry::*;
8787/// }
8888/// }
8989///
90+ /// // Look up the value for a key (will panic if the key is not found).
91+ /// println!("Movie review: {}", movie_reviews["Office Space"]);
92+ ///
9093/// // iterate over everything.
9194/// for (movie, review) in &movie_reviews {
9295/// println!("{}: \"{}\"", movie, review);
Original file line number Diff line number Diff line change @@ -309,6 +309,9 @@ const DISPLACEMENT_THRESHOLD: usize = 128;
309309/// }
310310/// }
311311///
312+ /// // Look up the value for a key (will panic if the key is not found).
313+ /// println!("Review for Jane: {}", book_reviews["Pride and Prejudice"]);
314+ ///
312315/// // Iterate over everything.
313316/// for (book, review) in &book_reviews {
314317/// println!("{}: \"{}\"", book, review);
You can’t perform that action at this time.
0 commit comments