Use dbg!
instead of println!
for simple debug prints
#2478
Labels
good first issue
Good for newcomers
dbg!
instead of println!
for simple debug prints
#2478
Originally, we did not show
stderr
output from the Playground programs. This was fixed in #2397 and so we can finally start converting the trivial debug print statements to usedbg!
.Specifically, I'm thinking of the many print statements that look like this:
They can simply become
When doing this conversion, pay attention to any
<!-- i18n:skip -->
lines before the code block. They were added to skip translation of the"a: {a:?}"
string, but now that the string disappears, the skip directive should be cleaned up too.The text was updated successfully, but these errors were encountered: