]> git.lizzy.rs Git - rust.git/blob - src/docs/too_many_lines.txt
Auto merge of #9421 - xphoniex:fix-#9420, r=giraffate
[rust.git] / src / docs / too_many_lines.txt
1 ### What it does
2 Checks for functions with a large amount of lines.
3
4 ### Why is this bad?
5 Functions with a lot of lines are harder to understand
6 due to having to look at a larger amount of code to understand what the
7 function is doing. Consider splitting the body of the function into
8 multiple functions.
9
10 ### Example
11 ```
12 fn im_too_long() {
13     println!("");
14     // ... 100 more LoC
15     println!("");
16 }
17 ```