Skip to content

Commit 085b534

Browse files
mgeislergribozavr
andauthored
docs: improve language in tuples-and-arrays section (#2875)
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 a37ef40 commit 085b534

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/tuples-and-arrays/arrays.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ fn main() {
6767

6868
- Arrays are not heap-allocated. They are regular values with a fixed size known
6969
at compile time, meaning they go on the stack. This can be different from what
70-
students expect if they come from a garbage collected language, where arrays
70+
students expect if they come from a garbage-collected language, where arrays
7171
may be heap allocated by default.
7272

7373
</details>
74+
s>

src/tuples-and-arrays/exercise.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ let array = [[1, 2, 3], [4, 5, 6], [7, 8, 9]];
1212

1313
What is the type of this variable?
1414

15-
Use an array such as the above to write a function `transpose` which will
16-
transpose a matrix (turn rows into columns):
15+
Use an array such as the above to write a function `transpose` that transposes a
16+
matrix (turns rows into columns):
1717

1818
<!-- mdbook-xgettext: skip -->
1919

0 commit comments

Comments
 (0)