From c7116fccf7fcbe166e51ef81cde596c81097e90d Mon Sep 17 00:00:00 2001 From: Zihao Ma <2638779206@qq.com> Date: Wed, 8 Nov 2023 21:26:05 +0800 Subject: [PATCH] Fix typo in Chapter 15 Section 05. changing: "`Rc` enables multiple owners of the same data; `Box` and `RefCell` have single owners ." "`Rc` enables multiple owners of the same data; `Box` and `RefCell` have single owner." --- src/ch15-05-interior-mutability.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch15-05-interior-mutability.md b/src/ch15-05-interior-mutability.md index 7b5e825d7e..d9b5273427 100644 --- a/src/ch15-05-interior-mutability.md +++ b/src/ch15-05-interior-mutability.md @@ -61,7 +61,7 @@ multithreaded program in Chapter 16. Here is a recap of the reasons to choose `Box`, `Rc`, or `RefCell`: * `Rc` enables multiple owners of the same data; `Box` and `RefCell` - have single owners. + have single owner. * `Box` allows immutable or mutable borrows checked at compile time; `Rc` allows only immutable borrows checked at compile time; `RefCell` allows immutable or mutable borrows checked at runtime.