mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 08:30:45 +00:00
Fix missing line comments in {drop,forget}_copy examples
This commit is contained in:
parent
7f0f8acb42
commit
78b141d937
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue