Skip to content

Commit 07d3009

Browse files
committedMay 29, 2024
drop_in_place: weaken the claim of equivalence with drop(ptr.read())
1 parent 1aaf0a9 commit 07d3009

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎core/src/ptr/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ mod mut_ptr;
450450

451451
/// Executes the destructor (if any) of the pointed-to value.
452452
///
453-
/// This is semantically equivalent to calling [`ptr::read`] and discarding
453+
/// This is almost the same as calling [`ptr::read`] and discarding
454454
/// the result, but has the following advantages:
455455
///
456456
/// * It is *required* to use `drop_in_place` to drop unsized types like

0 commit comments

Comments
 (0)