mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-02-06 02:53:28 +02:00
parent
7a25c4ad84
commit
252bb62521
@ -60,7 +60,7 @@ In the above example, try the following:
|
||||
# More to Explore
|
||||
|
||||
- Shared references are `Copy`/`Clone`, mutable references are not. This is
|
||||
because rust requires that mutable references be exclusive, so while it's
|
||||
because Rust requires that mutable references be exclusive, so while it's
|
||||
valid to make a copy of a shared reference, creating a copy of a mutable
|
||||
reference would violate Rust's borrowing rules.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user