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

incorrect comments in section "Structures" #1866

Open
CosmosBowen opened this issue Jul 22, 2024 · 1 comment
Open

incorrect comments in section "Structures" #1866

CosmosBowen opened this issue Jul 22, 2024 · 1 comment

Comments

@CosmosBowen
Copy link

I have searched open and closed issues and pull requests for duplicates, using these search terms:

  • "another_point"

URL to the section(s) of the book with this problem:

  • file:///Users/XXX/.rustup/toolchains/stable-aarch64-apple-darwin/share/doc/rust/html/rust-by-example/custom_types/structs.html

Description of the problem:
comment is not correct in Line 50, 51 for this block: Line 46-52, since bottom_right.y is updated by another_point.y, not point.y:

Screenshot 2024-07-22 at 9 44 32 AM

Suggested fix:
here the comment for println second point should be:
// bottom_right.y will be the same as another_point.y because we used that field
// from another_point

@dirisujesse
Copy link

Noticed the same as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants