Skip to content

Commit 5515566

Browse files
Improve "Why this is bad" section
Co-authored-by: Ruby Lazuli <[email protected]>
1 parent d7996da commit 5515566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/manual_is_power_of_two.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ declare_clippy_lint! {
1313
/// Checks for expressions like `x.count_ones() == 1` or `x & (x - 1) == 0` which are manual
1414
/// reimplementations of `x.is_power_of_two()``
1515
/// ### Why is this bad?
16-
/// It's simpler and clearer
16+
/// Manual reimplementations of `is_power_of_two` increase code complexity for little benefit.
1717
/// ### Example
1818
/// ```no_run
1919
/// let x: u32 = 1;

0 commit comments

Comments
 (0)