Skip to content

Commit 349059c

Browse files
committed
NonNull::is_aligned_for: fix doctest
1 parent 2f4dde0 commit 349059c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/ptr/non_null.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,6 +1288,7 @@ impl<T: ?Sized> NonNull<T> {
12881288
/// # Examples
12891289
///
12901290
/// ```
1291+
/// #![feature(pointer_is_aligned_for)]
12911292
/// use std::ptr::NonNull;
12921293
///
12931294
/// // On some platforms, the alignment of i32 is less than 4.

0 commit comments

Comments
 (0)