We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5515566 commit 6ecb48fCopy full SHA for 6ecb48f
clippy_lints/src/manual_is_power_of_two.rs
@@ -10,8 +10,8 @@ use rustc_session::declare_lint_pass;
10
11
declare_clippy_lint! {
12
/// ### What it does
13
- /// Checks for expressions like `x.count_ones() == 1` or `x & (x - 1) == 0` which are manual
14
- /// reimplementations of `x.is_power_of_two()``
+ /// Checks for expressions like `x.count_ones() == 1` or `x & (x - 1) == 0`, which are manual
+ /// reimplementations of `x.is_power_of_two()`.
15
/// ### Why is this bad?
16
/// Manual reimplementations of `is_power_of_two` increase code complexity for little benefit.
17
/// ### Example
0 commit comments