Skip to content

Commit d706e42

Browse files
pcwaltonerikdesjardins
authored andcommitted
Add missing "unsafe" to fix doctest
1 parent 3afffd8 commit d706e42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/ptr/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ mod mut_ptr;
442442
///
443443
/// ```
444444
/// # struct Foo { x: i32 }
445-
/// fn drop_in_place(to_drop: *mut Foo) {
445+
/// unsafe fn drop_in_place(to_drop: *mut Foo) {
446446
/// let mut value = &mut *to_drop;
447447
/// // ... drop the fields of `value` ...
448448
/// }

0 commit comments

Comments
 (0)