@@ -228,7 +228,7 @@ pub unsafe fn replace<T>(dest: *mut T, mut src: T) -> T {
228
228
/// moves the value out of `src` without preventing further usage of `src`.
229
229
/// If `T` is not `Copy`, then care must be taken to ensure that the value at
230
230
/// `src` is not used before the data is overwritten again (e.g. with `write`,
231
- /// `zero_memory `, or `copy_memory `). Note that `*src = foo` counts as a use
231
+ /// `write_bytes `, or `copy `). Note that `*src = foo` counts as a use
232
232
/// because it will attempt to drop the value previously at `*src`.
233
233
///
234
234
/// The pointer must be aligned; use `read_unaligned` if that is not the case.
@@ -264,7 +264,7 @@ pub unsafe fn read<T>(src: *const T) -> T {
264
264
/// moves the value out of `src` without preventing further usage of `src`.
265
265
/// If `T` is not `Copy`, then care must be taken to ensure that the value at
266
266
/// `src` is not used before the data is overwritten again (e.g. with `write`,
267
- /// `zero_memory `, or `copy_memory `). Note that `*src = foo` counts as a use
267
+ /// `write_bytes `, or `copy `). Note that `*src = foo` counts as a use
268
268
/// because it will attempt to drop the value previously at `*src`.
269
269
///
270
270
/// # Examples
@@ -397,7 +397,7 @@ pub unsafe fn write_unaligned<T>(dst: *mut T, src: T) {
397
397
/// moves the value out of `src` without preventing further usage of `src`.
398
398
/// If `T` is not `Copy`, then care must be taken to ensure that the value at
399
399
/// `src` is not used before the data is overwritten again (e.g. with `write`,
400
- /// `zero_memory `, or `copy_memory `). Note that `*src = foo` counts as a use
400
+ /// `write_bytes `, or `copy `). Note that `*src = foo` counts as a use
401
401
/// because it will attempt to drop the value previously at `*src`.
402
402
///
403
403
/// # Examples
@@ -871,7 +871,7 @@ impl<T: ?Sized> *const T {
871
871
/// moves the value out of `self` without preventing further usage of `self`.
872
872
/// If `T` is not `Copy`, then care must be taken to ensure that the value at
873
873
/// `self` is not used before the data is overwritten again (e.g. with `write`,
874
- /// `zero_memory `, or `copy_memory `). Note that `*self = foo` counts as a use
874
+ /// `write_bytes `, or `copy `). Note that `*self = foo` counts as a use
875
875
/// because it will attempt to drop the value previously at `*self`.
876
876
///
877
877
/// The pointer must be aligned; use `read_unaligned` if that is not the case.
@@ -925,7 +925,7 @@ impl<T: ?Sized> *const T {
925
925
/// moves the value out of `self` without preventing further usage of `self`.
926
926
/// If `T` is not `Copy`, then care must be taken to ensure that the value at
927
927
/// `self` is not used before the data is overwritten again (e.g. with `write`,
928
- /// `zero_memory `, or `copy_memory `). Note that `*self = foo` counts as a use
928
+ /// `write_bytes `, or `copy `). Note that `*self = foo` counts as a use
929
929
/// because it will attempt to drop the value previously at `*self`.
930
930
///
931
931
/// # Examples
@@ -961,7 +961,7 @@ impl<T: ?Sized> *const T {
961
961
/// moves the value out of `self` without preventing further usage of `self`.
962
962
/// If `T` is not `Copy`, then care must be taken to ensure that the value at
963
963
/// `self` is not used before the data is overwritten again (e.g. with `write`,
964
- /// `zero_memory `, or `copy_memory `). Note that `*self = foo` counts as a use
964
+ /// `write_bytes `, or `copy `). Note that `*self = foo` counts as a use
965
965
/// because it will attempt to drop the value previously at `*self`.
966
966
///
967
967
/// # Examples
@@ -1569,7 +1569,7 @@ impl<T: ?Sized> *mut T {
1569
1569
/// moves the value out of `self` without preventing further usage of `self`.
1570
1570
/// If `T` is not `Copy`, then care must be taken to ensure that the value at
1571
1571
/// `self` is not used before the data is overwritten again (e.g. with `write`,
1572
- /// `zero_memory `, or `copy_memory `). Note that `*self = foo` counts as a use
1572
+ /// `write_bytes `, or `copy `). Note that `*self = foo` counts as a use
1573
1573
/// because it will attempt to drop the value previously at `*self`.
1574
1574
///
1575
1575
/// The pointer must be aligned; use `read_unaligned` if that is not the case.
@@ -1623,7 +1623,7 @@ impl<T: ?Sized> *mut T {
1623
1623
/// moves the value out of `self` without preventing further usage of `self`.
1624
1624
/// If `T` is not `Copy`, then care must be taken to ensure that the value at
1625
1625
/// `src` is not used before the data is overwritten again (e.g. with `write`,
1626
- /// `zero_memory `, or `copy_memory `). Note that `*self = foo` counts as a use
1626
+ /// `write_bytes `, or `copy `). Note that `*self = foo` counts as a use
1627
1627
/// because it will attempt to drop the value previously at `*self`.
1628
1628
///
1629
1629
/// # Examples
@@ -1659,7 +1659,7 @@ impl<T: ?Sized> *mut T {
1659
1659
/// moves the value out of `self` without preventing further usage of `self`.
1660
1660
/// If `T` is not `Copy`, then care must be taken to ensure that the value at
1661
1661
/// `self` is not used before the data is overwritten again (e.g. with `write`,
1662
- /// `zero_memory `, or `copy_memory `). Note that `*self = foo` counts as a use
1662
+ /// `write_bytes `, or `copy `). Note that `*self = foo` counts as a use
1663
1663
/// because it will attempt to drop the value previously at `*self`.
1664
1664
///
1665
1665
/// # Examples
0 commit comments