]> git.lizzy.rs Git - rust.git/blob - src/docs/dbg_macro.txt
Auto merge of #9475 - Nemo157:mod-files-remap, r=xFrednet
[rust.git] / 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 ```