Skip to content

Chapter 2: Printing values with println! Placeholders #3528

@bsljth

Description

@bsljth

URL to the section(s) of the book with this problem:
https://doc.rust-lang.org/stable/book/ch02-00-guessing-game-tutorial.html#printing-values-with-println-placeholders

Description of the problem:
The last line of the section is printed wrong:

This code would print x = 5 and y = 12.

Suggested fix:
This should be:

This code would print x = 5 and y + 2 = 12.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions