about summary refs log tree commit diff
path: root/src/docs/possible_missing_comma.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/docs/possible_missing_comma.txt')
-rw-r--r--src/docs/possible_missing_comma.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/docs/possible_missing_comma.txt b/src/docs/possible_missing_comma.txt
new file mode 100644
index 00000000000..5d92f4cae91
--- /dev/null
+++ b/src/docs/possible_missing_comma.txt
@@ -0,0 +1,14 @@
+### What it does
+Checks for possible missing comma in an array. It lints if
+an array element is a binary operator expression and it lies on two lines.
+
+### Why is this bad?
+This could lead to unexpected results.
+
+### Example
+```
+let a = &[
+    -1, -2, -3 // <= no comma here
+    -4, -5, -6
+];
+```
\ No newline at end of file