summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/writeln_empty_string.txt
blob: 3b3aeb79a48bce1fd5e072c60907ae34c2378d75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
### What it does
This lint warns when you use `writeln!(buf, "")` to
print a newline.

### Why is this bad?
You should use `writeln!(buf)`, which is simpler.

### Example
```
writeln!(buf, "");
```

Use instead:
```
writeln!(buf);
```