-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[Chapter 3-2] Hard to read paragraph #4009
Comments
I think your suggestion is a tiny improvement. But this section shows a general problem when writing for a broad target audience: For experts, i.e. experienced C++ programmers, explanations can be boring, while for beginners, e.g. people with only some Python experience, terms like stack and heap might be unfamiliar, and the pros and cons between arrays and vectors would need a much more detailed explanation. |
I made the mistake of not attaching the paragraph before the problem paragraph.
The second sentence compares a vector to a tuple. So I thought it continued in the next paragraph. |
I can kind of see why you got hung up here. I think a smaller change might actually serve to clarify (new text emphasized):
That avoids introducing confusion about the non-tuple types, and also avoids trying to distinguish between array and vector before we have even said what a vector is. |
I tend to agree. With this remark, the text becomes clearer. |
main
branch to see if this has already been fixed, in this file:book/src/ch03-02-data-types.md
URL to the section(s) of the book with this problem:
https://doc.rust-lang.org/book/ch03-02-data-types.html#the-array-type
Description of the problem:
After first reading it seemed that the first sentence compares array to tuple, but not vector, and only in the second sentence vector is mentioned. Also, I'm not sure about the usefulness of the pre-last sentence, as the difference becomes clear after reading chapter 4.
Suggested fix:
The text was updated successfully, but these errors were encountered: