mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 07:00:55 +00:00
Tweak
misrefactored_assign_op's known problems wording
This commit is contained in:
parent
6ad7a92ff8
commit
70f5bb1ff6
1 changed files with 2 additions and 2 deletions
|
@ -53,8 +53,8 @@ declare_clippy_lint! {
|
||||||
///
|
///
|
||||||
/// **Known problems:** Clippy cannot know for sure if `a op= a op b` should have
|
/// **Known problems:** Clippy cannot know for sure if `a op= a op b` should have
|
||||||
/// been `a = a op a op b` or `a = a op b`/`a op= b`. Therefore it suggests both.
|
/// been `a = a op a op b` or `a = a op b`/`a op= b`. Therefore it suggests both.
|
||||||
/// If `a op= a op b` is really the correct behaviour then
|
/// If `a op= a op b` is really the correct behaviour it should be
|
||||||
/// rewrite it as `a = (2 * a) op b` as it's less confusing.
|
/// written as `a = a op a op b` as it's less confusing.
|
||||||
///
|
///
|
||||||
/// **Example:**
|
/// **Example:**
|
||||||
/// ```rust
|
/// ```rust
|
||||||
|
|
Loading…
Reference in a new issue