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::*;
97
97
/// }
98
98
/// }
99
99
///
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
+ ///
100
103
/// // iterate over everything.
101
104
/// for (movie, review) in &movie_reviews {
102
105
/// println!("{}: \"{}\"", movie, review);
Original file line number Diff line number Diff line change @@ -318,6 +318,9 @@ const DISPLACEMENT_THRESHOLD: usize = 128;
318
318
/// }
319
319
/// }
320
320
///
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
+ ///
321
324
/// // Iterate over everything.
322
325
/// for (book, review) in &book_reviews {
323
326
/// println!("{}: \"{}\"", book, review);
You can’t perform that action at this time.
0 commit comments