mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +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
|
||||
/// 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
|
||||
/// rewrite it as `a = (2 * a) op b` as it's less confusing.
|
||||
/// If `a op= a op b` is really the correct behaviour it should be
|
||||
/// written as `a = a op a op b` as it's less confusing.
|
||||
///
|
||||
/// **Example:**
|
||||
/// ```rust
|
||||
|
|
Loading…
Reference in a new issue