]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/src/docs/dbg_macro.txt
Rollup merge of #101389 - lukaslueg:rcgetmutdocs, r=m-ou-se
[rust.git] / src / tools / clippy / src / docs / dbg_macro.txt
1 ### What it does
2 Checks for usage of dbg!() macro.
3
4 ### Why is this bad?
5 `dbg!` macro is intended as a debugging tool. It
6 should not be in version control.
7
8 ### Example
9 ```
10 dbg!(true)
11 ```
12
13 Use instead:
14 ```
15 true
16 ```