Fixed extra backtick
Co-authored-by: Ruby Lazuli <general@patchmixolydic.com>
This commit is contained in:
parent
5515566829
commit
6ecb48f6d0
@ -10,8 +10,8 @@ use rustc_session::declare_lint_pass;
|
|||||||
|
|
||||||
declare_clippy_lint! {
|
declare_clippy_lint! {
|
||||||
/// ### What it does
|
/// ### What it does
|
||||||
/// Checks for expressions like `x.count_ones() == 1` or `x & (x - 1) == 0` which are manual
|
/// Checks for expressions like `x.count_ones() == 1` or `x & (x - 1) == 0`, which are manual
|
||||||
/// reimplementations of `x.is_power_of_two()``
|
/// reimplementations of `x.is_power_of_two()`.
|
||||||
/// ### Why is this bad?
|
/// ### Why is this bad?
|
||||||
/// Manual reimplementations of `is_power_of_two` increase code complexity for little benefit.
|
/// Manual reimplementations of `is_power_of_two` increase code complexity for little benefit.
|
||||||
/// ### Example
|
/// ### Example
|
||||||
|
Loading…
x
Reference in New Issue
Block a user