We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MaybeUninit::get_mut()
1 parent 436494b commit 2cf339aCopy full SHA for 2cf339a
src/libcore/mem/maybe_uninit.rs
@@ -669,7 +669,7 @@ impl<T> MaybeUninit<T> {
669
/// // Now we can use `buf` as a normal slice:
670
/// buf.sort_unstable();
671
/// assert!(
672
- /// buf.chunks(2).all(|chunk| chunk[0] <= chunk[1]),
+ /// buf.windows(2).all(|pair| pair[0] <= pair[1]),
673
/// "buffer is sorted",
674
/// );
675
/// ```
0 commit comments