diff options
Diffstat (limited to 'src/tools/clippy/src/docs/just_underscores_and_digits.txt')
-rw-r--r-- | src/tools/clippy/src/docs/just_underscores_and_digits.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tools/clippy/src/docs/just_underscores_and_digits.txt b/src/tools/clippy/src/docs/just_underscores_and_digits.txt new file mode 100644 index 000000000..a8790bcf2 --- /dev/null +++ b/src/tools/clippy/src/docs/just_underscores_and_digits.txt @@ -0,0 +1,14 @@ +### What it does +Checks if you have variables whose name consists of just +underscores and digits. + +### Why is this bad? +It's hard to memorize what a variable means without a +descriptive name. + +### Example +``` +let _1 = 1; +let ___1 = 1; +let __1___2 = 11; +```
\ No newline at end of file |