mirror of
https://github.com/rust-lang/book.git
synced 2026-09-15 04:20:07 -04:00
the the
This commit is contained in:
@@ -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, we’d be able to violate one of the the borrowing rules
|
||||
mutable references too, we’d 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, we’ll discuss the interior mutability pattern and
|
||||
|
||||
Reference in New Issue
Block a user