Skip to content

Commit 78b141d

Browse files
authored
Fix missing line comments in {drop,forget}_copy examples
1 parent 7f0f8ac commit 78b141d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/drop_forget_ref.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ declare_clippy_lint! {
6060
/// ```rust
6161
/// let x:i32 = 42; // i32 implements Copy
6262
/// std::mem::drop(x) // A copy of x is passed to the function, leaving the
63-
/// original unaffected
63+
/// // original unaffected
6464
/// ```
6565
declare_clippy_lint! {
6666
pub DROP_COPY,
@@ -87,7 +87,7 @@ declare_clippy_lint! {
8787
/// ```rust
8888
/// let x:i32 = 42; // i32 implements Copy
8989
/// std::mem::forget(x) // A copy of x is passed to the function, leaving the
90-
/// original unaffected
90+
/// // original unaffected
9191
/// ```
9292
declare_clippy_lint! {
9393
pub FORGET_COPY,

0 commit comments

Comments
 (0)