Skip to content

Commit

Permalink
Fixed extra backtick
Browse files Browse the repository at this point in the history
Co-authored-by: Ruby Lazuli <general@patchmixolydic.com>
  • Loading branch information
Sour1emon and PatchMixolydic committed Sep 3, 2024
1 parent e106835 commit 434ba31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/manual_is_power_of_two.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ use rustc_session::declare_lint_pass;

declare_clippy_lint! {
/// ### What it does
/// Checks for expressions like `x.count_ones() == 1` or `x & (x - 1) == 0` which are manual
/// 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()`.
/// ### Why is this bad?
/// Manual reimplementations of `is_power_of_two` increase code complexity for little benefit.
/// ### Example
Expand Down

0 comments on commit 434ba31

Please sign in to comment.