Skip to content

Commit 53f21aa

Browse files
committed
Add missing "unsafe" to fix doctest
1 parent 02cfabe commit 53f21aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/ptr/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ mod mut_ptr;
441441
///
442442
/// ```
443443
/// # struct Foo { x: i32 }
444-
/// fn drop_in_place(to_drop: *mut Foo) {
444+
/// unsafe fn drop_in_place(to_drop: *mut Foo) {
445445
/// let mut value = &mut *to_drop;
446446
/// // ... drop the fields of `value` ...
447447
/// }

0 commit comments

Comments
 (0)