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 @@ -97,6 +97,9 @@ use self::Entry::*;
9797/// }
9898/// }
9999///
100+ /// // Look up the value for a key (will panic if the key is not found).
101+ /// println!("Review for Jane: {}", book_reviews["Pride and Prejudice"]);
102+ ///
100103/// // iterate over everything.
101104/// for (movie, review) in &movie_reviews {
102105/// println!("{}: \"{}\"", movie, review);
Original file line number Diff line number Diff line change @@ -318,6 +318,9 @@ const DISPLACEMENT_THRESHOLD: usize = 128;
318318/// }
319319/// }
320320///
321+ /// // Look up the value for a key (will panic if the key is not found).
322+ /// println!("Review for Jane: {}", book_reviews["Pride and Prejudice"]);
323+ ///
321324/// // Iterate over everything.
322325/// for (book, review) in &book_reviews {
323326/// println!("{}: \"{}\"", book, review);
You can’t perform that action at this time.
0 commit comments