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.)
This commit is contained in:
Per Lundberg 2018-02-02 22:44:14 +02:00 committed by GitHub
parent 616b66dca2
commit 321e429b9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
/// }