]> git.lizzy.rs Git - rust.git/blob - src/docs/just_underscores_and_digits.txt
Auto merge of #9425 - kraktus:patch-1, r=xFrednet
[rust.git] / src / docs / just_underscores_and_digits.txt
1 ### What it does
2 Checks if you have variables whose name consists of just
3 underscores and digits.
4
5 ### Why is this bad?
6 It's hard to memorize what a variable means without a
7 descriptive name.
8
9 ### Example
10 ```
11 let _1 = 1;
12 let ___1 = 1;
13 let __1___2 = 11;
14 ```