From 7d10518b244fcb0907b5c1e415dab6f70a2e28be Mon Sep 17 00:00:00 2001 From: Xavier Carol Date: Mon, 4 Dec 2023 19:36:35 +0100 Subject: [PATCH] Update interior-mutability.md (#1554) fix typo copmile-time --- src/borrowing/interior-mutability.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borrowing/interior-mutability.md b/src/borrowing/interior-mutability.md index 8b734e39..92266803 100644 --- a/src/borrowing/interior-mutability.md +++ b/src/borrowing/interior-mutability.md @@ -8,7 +8,7 @@ Introduce the concept, with an example based on Mutex showing an `&self` method # Interior Mutability Rust provides a few safe means of modifying a value given only a shared -reference to that value. All of these replace copmile-time checks with runtime +reference to that value. All of these replace compile-time checks with runtime checks. ## `Cell` and `RefCell`