Skip to content

Commit

Permalink
Update -guessing-game-tutorial incorrect output
Browse files Browse the repository at this point in the history
`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`."
  • Loading branch information
artyrcheek authored and carols10cents committed Dec 22, 2022
1 parent 4c8d13c commit f28554d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch02-00-guessing-game-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ let y = 10;
println!("x = {x} and y + 2 = {}", y + 2);
```

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

### Testing the First Part

Expand Down

0 comments on commit f28554d

Please sign in to comment.