1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-11-29 08:57:20 +02:00

docs: improve language in borrowing section (#2893)

I asked Gemini to review the English for inconsistencies and grammar
mistakes. This is the result and I hope it's useful!

As a non-native speaker, it is hard for me to evaluate the finer
details, so let me know if you would like to see changes (or even
better: make them directly in the PR with the suggestion function).

---------

Co-authored-by: Dmitri Gribenko <gribozavr@gmail.com>
This commit is contained in:
Martin Geisler
2025-09-06 20:41:17 +02:00
committed by GitHub
parent 8fc529de84
commit 16c960d690

View File

@@ -65,9 +65,9 @@ fn main() {
## More to Explore
- Technically multiple mutable references to a piece of data can exist at the
- Technically, multiple mutable references to a piece of data can exist at the
same time via re-borrowing. This is what allows you to pass a mutable
reference into a function without invaliding the original reference.
reference into a function without invalidating the original reference.
[This playground example][1] demonstrates that behavior.
- Rust uses the exclusive reference constraint to ensure that data races do not
occur in multi-threaded code, since only one thread can have mutable access to