diff options
Diffstat (limited to 'src/tools/clippy/src/docs/double_parens.txt')
-rw-r--r-- | src/tools/clippy/src/docs/double_parens.txt | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/tools/clippy/src/docs/double_parens.txt b/src/tools/clippy/src/docs/double_parens.txt deleted file mode 100644 index 260d7dd57..000000000 --- a/src/tools/clippy/src/docs/double_parens.txt +++ /dev/null @@ -1,24 +0,0 @@ -### What it does -Checks for unnecessary double parentheses. - -### Why is this bad? -This makes code harder to read and might indicate a -mistake. - -### Example -``` -fn simple_double_parens() -> i32 { - ((0)) -} - -foo((0)); -``` - -Use instead: -``` -fn simple_no_parens() -> i32 { - 0 -} - -foo(0); -```
\ No newline at end of file |