diff --git a/training-slides/src/thread-safety.md b/training-slides/src/thread-safety.md index 1a95aef..55cfa26 100644 --- a/training-slides/src/thread-safety.md +++ b/training-slides/src/thread-safety.md @@ -90,7 +90,7 @@ It's our old friend/enemy shared mutability! ```rust ignore fn thread_function(arg: &std::cell::RefCell) { for _ in 0..1_000_000 { - let p = arg.borrow_mut(); + let mut p = arg.borrow_mut(); *p += 1; } }