Skip to content

Conversation

@ayoubboumzebra
Copy link

@ayoubboumzebra ayoubboumzebra commented Dec 15, 2022

correct the output of println!

println!("x = {x} and y + 2 = {}", y + 2);

This code would print x = 5 and y = 12." is incorrect.

Changed to

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

correct the output of println!
Copy link

@mharsch mharsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change looks good; it matches actual output and the intent of the example.

Copy link

@zdf1230 zdf1230 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found this while reading, thanks for doing this.

@ggirelli
Copy link

Also noticed this while reading, thanks for the PR! 🙏

@sarda-devesh
Copy link

Noticed this as well - thanks for saving me the effort of forking the repo.

@carols10cents
Copy link
Member

Closing as a duplicate of #3462. Please check existing issues and PRs before opening new ones; thanks!

@carols10cents carols10cents added this to the ch2 milestone Dec 22, 2022
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.

6 participants