Skip to content

Commit 2cf339a

Browse files
danielhenrymantillaFrantisek Fladung
and
Frantisek Fladung
committed
Fix doc example for MaybeUninit::get_mut()
Suggested by @ametisf in #65948 (comment) Co-Authored-By: Frantisek Fladung <[email protected]>
1 parent 436494b commit 2cf339a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/mem/maybe_uninit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ impl<T> MaybeUninit<T> {
669669
/// // Now we can use `buf` as a normal slice:
670670
/// buf.sort_unstable();
671671
/// assert!(
672-
/// buf.chunks(2).all(|chunk| chunk[0] <= chunk[1]),
672+
/// buf.windows(2).all(|pair| pair[0] <= pair[1]),
673673
/// "buffer is sorted",
674674
/// );
675675
/// ```

0 commit comments

Comments
 (0)