Skip to content

incorrect comments in section "Structures" #1866

Open
@CosmosBowen

Description

@CosmosBowen

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions