about summary refs log tree commit diff
path: root/src/docs/println_empty_string.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/docs/println_empty_string.txt')
-rw-r--r--src/docs/println_empty_string.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/docs/println_empty_string.txt b/src/docs/println_empty_string.txt
new file mode 100644
index 00000000000..b980413022c
--- /dev/null
+++ b/src/docs/println_empty_string.txt
@@ -0,0 +1,16 @@
+### What it does
+This lint warns when you use `println!("")` to
+print a newline.
+
+### Why is this bad?
+You should use `println!()`, which is simpler.
+
+### Example
+```
+println!("");
+```
+
+Use instead:
+```
+println!();
+```
\ No newline at end of file