Correct code in E0382 explanation

Closes #31048
This commit is contained in:
Andrew Paseltiner 2016-01-20 10:21:38 -05:00
parent a668dd2a56
commit 132ec2cde7

View File

@ -124,7 +124,7 @@ fn main() {
let mut x = Rc::new(RefCell::new(MyStruct{ s: 5u32 }));
let y = x.clone();
x.borrow_mut().s = 6;
println!("{}", x.borrow.s);
println!("{}", x.borrow().s);
}
```