File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -191,9 +191,8 @@ pub unsafe fn read_unaligned<T>(src: *const T) -> T {
191
191
/// allocations or resources, so care must be taken not to overwrite an object
192
192
/// that should be dropped.
193
193
///
194
- /// It does not immediately drop the contents of `src` either; it is rather
195
- /// *moved* into the memory location `dst` and will be dropped whenever that
196
- /// location goes out of scope.
194
+ /// Additionally, it does not drop `src`. Semantically, `src` is moved into the
195
+ /// location pointed to by `dst`.
197
196
///
198
197
/// This is appropriate for initializing uninitialized memory, or overwriting
199
198
/// memory that has previously been `read` from.
@@ -233,6 +232,9 @@ pub unsafe fn write<T>(dst: *mut T, src: T) {
233
232
/// allocations or resources, so care must be taken not to overwrite an object
234
233
/// that should be dropped.
235
234
///
235
+ /// Additionally, it does not drop `src`. Semantically, `src` is moved into the
236
+ /// location pointed to by `dst`.
237
+ ///
236
238
/// This is appropriate for initializing uninitialized memory, or overwriting
237
239
/// memory that has previously been `read` from.
238
240
///
You can’t perform that action at this time.
0 commit comments