Skip to content

Commit 321e429

Browse files
authored
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.)
1 parent 616b66d commit 321e429

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)