rust-lang/rust-by-example

Add inline printing/formatting for Debug

elibroftw opened this issue · 1 comments

https://doc.rust-lang.org/rust-by-example/hello/print/print_debug.html

This is another way to format or print a variable.

format!("{var:?}")
format!("{var:#?}")

Hi, I'm closing this issue just to clean up the items that already exist. If you think this issue makes sense to stay open, please create a new issue with updated information and mention this one.

thanks!