Skip to content

Commit 132ec2c

Browse files
committed
Correct code in E0382 explanation
Closes #31048
1 parent a668dd2 commit 132ec2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_borrowck/diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ fn main() {
124124
let mut x = Rc::new(RefCell::new(MyStruct{ s: 5u32 }));
125125
let y = x.clone();
126126
x.borrow_mut().s = 6;
127-
println!("{}", x.borrow.s);
127+
println!("{}", x.borrow().s);
128128
}
129129
```
130130

0 commit comments

Comments
 (0)