Skip to content

Commit 3a0a423

Browse files
committed
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.)
2 parents 8d1586d + 321e429 commit 3a0a423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/intrinsics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ extern "rust-intrinsic" {
992992
/// ptr::copy_nonoverlapping(y, x, 1);
993993
/// ptr::copy_nonoverlapping(&t, y, 1);
994994
///
995-
/// // y and t now point to the same thing, but we need to completely forget `tmp`
995+
/// // y and t now point to the same thing, but we need to completely forget `t`
996996
/// // because it's no longer relevant.
997997
/// mem::forget(t);
998998
/// }

0 commit comments

Comments
 (0)