Fix missing line comments in {drop,forget}_copy examples

This commit is contained in:
Nathan 2018-04-27 02:40:19 -04:00 committed by GitHub
parent 7f0f8acb42
commit 78b141d937
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
@ -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,