]> git.lizzy.rs Git - rust.git/commitdiff
Change wrong variable name.
authorTomasz Różański <rosto@tlen.pl>
Sun, 21 Jul 2019 19:07:38 +0000 (21:07 +0200)
committerTomasz Różański <rosto@tlen.pl>
Sun, 21 Jul 2019 19:07:38 +0000 (21:07 +0200)
src/liballoc/collections/btree/map.rs

index d466948a0178e18e8d5595dc6110fd776ffd3535..7cf779b3e72814363f7ca9664ecb07f7ac26df85 100644 (file)
 ///
 /// // look up the values associated with some keys.
 /// let to_find = ["Up!", "Office Space"];
-/// for book in &to_find {
-///     match movie_reviews.get(book) {
-///        Some(review) => println!("{}: {}", book, review),
-///        None => println!("{} is unreviewed.", book)
+/// for movie in &to_find {
+///     match movie_reviews.get(movie) {
+///        Some(review) => println!("{}: {}", movie, review),
+///        None => println!("{} is unreviewed.", movie)
 ///     }
 /// }
 ///