about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorJoshua Landau <joshua@landau.ws>2015-06-11 13:56:07 +0100
committerJoshua Landau <joshua@landau.ws>2015-06-11 13:56:07 +0100
commitd7f5fa4636b12c3dadd626e708ec7cef654faf54 (patch)
tree26d1cae1de4f3b8d179cf008e380b6396bd9070f /src/liballoc
parentca7418b84658fc1c723672c462aa0a7878d88b64 (diff)
downloadrust-d7f5fa4636b12c3dadd626e708ec7cef654faf54.tar.gz
rust-d7f5fa4636b12c3dadd626e708ec7cef654faf54.zip
Conver reborrows to .iter() calls where appropriate
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/rc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs
index 6a9b41c0fe4..906a41a4d53 100644
--- a/src/liballoc/rc.rs
+++ b/src/liballoc/rc.rs
@@ -130,7 +130,7 @@
 //!     gadget_owner.gadgets.borrow_mut().push(gadget2.clone().downgrade());
 //!
 //!     // Iterate over our Gadgets, printing their details out
-//!     for gadget_opt in &*gadget_owner.gadgets.borrow() {
+//!     for gadget_opt in gadget_owner.gadgets.borrow().iter() {
 //!
 //!         // gadget_opt is a Weak<Gadget>. Since weak pointers can't guarantee
 //!         // that their object is still allocated, we need to call upgrade()