about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-02-03 16:08:27 +0800
committerkennytm <kennytm@gmail.com>2018-02-03 16:08:27 +0800
commit3a0a423d6129d4f55405ed84828c7f24ff58820e (patch)
tree04c4de49a3b99197d4a54a530fab611c10d14ea2 /src/libcore
parent8d1586df51256209f61c63d887870124b606f456 (diff)
parent321e429b9f9318dccd93f0bb637be3a6c926daef (diff)
downloadrust-3a0a423d6129d4f55405ed84828c7f24ff58820e.tar.gz
rust-3a0a423d6129d4f55405ed84828c7f24ff58820e.zip
Rollup merge of #47973 - perlun:patch-1, r=dtolnay
copy_nonoverlapping example: Fixed typo

The comment referred to a variable using an incorrect name. (it has probably been renamed since the comment was written, or the comment was copied elsewhere - I noted the example in libcore has the `tmp` name for the temporary variable.)
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/intrinsics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/intrinsics.rs b/src/libcore/intrinsics.rs
index a611dc02469..a05d67a304f 100644
--- a/src/libcore/intrinsics.rs
+++ b/src/libcore/intrinsics.rs
@@ -992,7 +992,7 @@ extern "rust-intrinsic" {
     ///         ptr::copy_nonoverlapping(y, x, 1);
     ///         ptr::copy_nonoverlapping(&t, y, 1);
     ///
-    ///         // y and t now point to the same thing, but we need to completely forget `tmp`
+    ///         // y and t now point to the same thing, but we need to completely forget `t`
     ///         // because it's no longer relevant.
     ///         mem::forget(t);
     ///     }