Skip to content

Commit 16c960d

Browse files
mgeislergribozavr
andauthored
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 <[email protected]>
1 parent 8fc529d commit 16c960d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/borrowing/borrowck.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ fn main() {
6565

6666
## More to Explore
6767

68-
- Technically multiple mutable references to a piece of data can exist at the
68+
- Technically, multiple mutable references to a piece of data can exist at the
6969
same time via re-borrowing. This is what allows you to pass a mutable
70-
reference into a function without invaliding the original reference.
70+
reference into a function without invalidating the original reference.
7171
[This playground example][1] demonstrates that behavior.
7272
- Rust uses the exclusive reference constraint to ensure that data races do not
7373
occur in multi-threaded code, since only one thread can have mutable access to

0 commit comments

Comments
 (0)