-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this rustbook sentence is confusing (to me) #29730
Comments
I agree that it's a bit odd, yeah. I'll try to figure out a better phrasing. It's trying to say that if you don't have two pointers to the same location in memory, you can't get a race, since a race inherently means two simultaneous load/stores. |
What about "However, as we can only have one |
I like it. |
Should I make a PR or is there an aggregate PR for minor changes like this? |
We don't do aggregate PRs, feel free to send one in for just this, thanks! On Thu, Nov 12, 2015 at 11:04 AM, Ashkan Kiani notifications@github.com
|
If you are writing, you need two or more pointers to the same memory, and you can only have one &mut at a time.
from: https://doc.rust-lang.org/nightly/book/references-and-borrowing.html#the-rules
The text was updated successfully, but these errors were encountered: