Skip to content

Commit

Permalink
Fix missing line comments in {drop,forget}_copy examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan committed Apr 27, 2018
1 parent 7f0f8ac commit 78b141d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/drop_forget_ref.rs
Expand Up @@ -60,7 +60,7 @@ declare_clippy_lint! {
/// ```rust
/// let x:i32 = 42; // i32 implements Copy
/// std::mem::drop(x) // A copy of x is passed to the function, leaving the
/// original unaffected
/// // original unaffected
/// ```
declare_clippy_lint! {
pub DROP_COPY,
Expand All @@ -87,7 +87,7 @@ declare_clippy_lint! {
/// ```rust
/// let x:i32 = 42; // i32 implements Copy
/// std::mem::forget(x) // A copy of x is passed to the function, leaving the
/// original unaffected
/// // original unaffected
/// ```
declare_clippy_lint! {
pub FORGET_COPY,
Expand Down

0 comments on commit 78b141d

Please sign in to comment.