Skip to content
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

Ch 10.1 minor clarifications #4256

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

km274
Copy link

@km274 km274 commented Mar 3, 2025

I'm an experienced programmer currently going through the book to learn Rust. A specific section of chapter 10.1 confused me a bit, and I found an existing issue indicating it confused other people too (#3658). I've opened a small PR to see if it can help make this section clearer.

Others in the discussion suggested some larger changes to the way the example is presented, but I think this should clarify things without requiring a non-trivial restructure.

km274 added 2 commits March 3, 2025 17:04
"we'll fix it later in this chapter" somewhat implies that a correct code example will be provided later; "later in this chapter" also implies "quite a bit later", when the fix is actually discussed very shortly after the non-compiling code is presented
"By following the help text’s suggestion, we restrict..." and "...and this example will compile..." imply to the reader that after this paragraph, they can expect to see a corrected code example. This rewording, though somewhat subtle, clarfies how the code example *would* be fixed by following the compiler's help message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant