]> git.lizzy.rs Git - rust.git/blob - src/docs/writeln_empty_string.txt
Add iter_kv_map lint
[rust.git] / src / docs / writeln_empty_string.txt
1 ### What it does
2 This lint warns when you use `writeln!(buf, "")` to
3 print a newline.
4
5 ### Why is this bad?
6 You should use `writeln!(buf)`, which is simpler.
7
8 ### Example
9 ```
10 writeln!(buf, "");
11 ```
12
13 Use instead:
14 ```
15 writeln!(buf);
16 ```