about summary refs log tree commit diff
diff options
context:
space:
mode:
authorlyj <sjtu5140809011@gmail.com>2021-06-09 15:25:48 +0800
committerlyj <sjtu5140809011@gmail.com>2021-06-09 15:25:48 +0800
commitfe549f711a002ddf6a509ff0bd4b17d271a7c1df (patch)
treec27633cc44b344928804fc4d0b6009d03a415b2e
parente4a1e8524cb3b03e24be800e5abbf5e5a25d268d (diff)
downloadrust-fe549f711a002ddf6a509ff0bd4b17d271a7c1df.tar.gz
rust-fe549f711a002ddf6a509ff0bd4b17d271a7c1df.zip
redundant_clone: fix comment
-rw-r--r--clippy_lints/src/redundant_clone.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/redundant_clone.rs b/clippy_lints/src/redundant_clone.rs
index 19650c41b84..380557c81a1 100644
--- a/clippy_lints/src/redundant_clone.rs
+++ b/clippy_lints/src/redundant_clone.rs
@@ -132,7 +132,7 @@ impl<'tcx> LateLintPass<'tcx> for RedundantClone {
                 }
             }
 
-            // `{ cloned = &arg; clone(move cloned); }` or `{ cloned = &arg; to_path_buf(cloned); }`
+            // `{ arg = &cloned; clone(move arg); }` or `{ arg = &cloned; to_path_buf(arg); }`
             let (cloned, cannot_move_out) = unwrap_or_continue!(find_stmt_assigns_to(cx, mir, arg, from_borrow, bb));
 
             let loc = mir::Location {