This commit is contained in:
Chen Rotem Levy
2017-12-01 22:53:25 +02:00
committed by GitHub
parent a6caeb71fb
commit 071b97540b

View File

@@ -232,7 +232,7 @@ of the owners still exist.
`Rc<T>` allows us to share data between multiple parts of our program for
reading only, via immutable references. If `Rc<T>` allowed us to have multiple
mutable references too, wed be able to violate one of the the borrowing rules
mutable references too, wed be able to violate one of the borrowing rules
that we discussed in Chapter 4: multiple mutable borrows to the same place can
cause data races and inconsistencies. But being able to mutate data is very
useful! In the next section, well discuss the interior mutability pattern and