]> git.lizzy.rs Git - rust.git/commitdiff
Fix missing line comments in {drop,forget}_copy examples
authorNathan <nathan@users.noreply.github.com>
Fri, 27 Apr 2018 06:40:19 +0000 (02:40 -0400)
committerGitHub <noreply@github.com>
Fri, 27 Apr 2018 06:40:19 +0000 (02:40 -0400)
clippy_lints/src/drop_forget_ref.rs

index 086dd2e20a81b7cd5b0a08ff306f85772054e5a4..007accc7fbf8caba7726b6a33cd25d071c648433 100644 (file)
@@ -60,7 +60,7 @@
 /// ```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 @@
 /// ```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,