blob: 640323e822dbf5c529d4cdd7e56fc7d5459a5e27 (
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 `print!()` with a format
string that ends in a newline.
### Why is this bad?
You should use `println!()` instead, which appends the
newline.
### Example
```
print!("Hello {}!\n", name);
```
use println!() instead
```
println!("Hello {}!", name);
```
|