diff options
Diffstat (limited to 'src/docs/let_unit_value.txt')
| -rw-r--r-- | src/docs/let_unit_value.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/docs/let_unit_value.txt b/src/docs/let_unit_value.txt new file mode 100644 index 00000000000..bc16d5b3d81 --- /dev/null +++ b/src/docs/let_unit_value.txt @@ -0,0 +1,13 @@ +### What it does +Checks for binding a unit value. + +### Why is this bad? +A unit value cannot usefully be used anywhere. So +binding one is kind of pointless. + +### Example +``` +let x = { + 1; +}; +``` \ No newline at end of file |
