Skip to content

Commit 8fc529d

Browse files
mgeislergribozavr
andauthored
docs: improve language in references section (#2878)
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 7ebca87 commit 8fc529d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/references/exclusive.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Key points:
2828
making an `&point.0` or changing `point.0` while `x_coord` is alive.
2929

3030
- Be sure to note the difference between `let mut x_coord: &i32` and
31-
`let x_coord: &mut i32`. The first one represents a shared reference which can
32-
be bound to different values, while the second represents an exclusive
33-
reference to a mutable value.
31+
`let x_coord: &mut i32`. The first one is a shared reference that can be bound
32+
to different values, while the second is an exclusive reference to a mutable
33+
value.
3434

3535
</details>

src/references/slices.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ fn main() {
4545
- You can't "grow" a slice once it's created:
4646
- You can't append elements of the slice, since it doesn't own the backing
4747
buffer.
48-
- You can't grow a slice to point to a larger section of the backing buffer.
49-
The slice loses information about the underlying buffer and so you can't
50-
know how larger the slice can be grown.
48+
- You can't grow a slice to point to a larger section of the backing buffer. A
49+
slice does not have information about the length of the underlying buffer
50+
and so you can't know how large the slice can be grown.
5151
- To get a larger slice you have to back to the original buffer and create a
5252
larger slice from there.
5353

0 commit comments

Comments
 (0)