Skip to content

Commit

Permalink
Fix doc example for MaybeUninit::get_mut()
Browse files Browse the repository at this point in the history
Suggested by @ametisf in rust-lang#65948 (comment)

Co-Authored-By: Frantisek Fladung <fladufra@fel.cvut.cz>
  • Loading branch information
danielhenrymantilla and Frantisek Fladung committed Feb 22, 2020
1 parent 436494b commit 2cf339a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/mem/maybe_uninit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ impl<T> MaybeUninit<T> {
/// // Now we can use `buf` as a normal slice:
/// buf.sort_unstable();
/// assert!(
/// buf.chunks(2).all(|chunk| chunk[0] <= chunk[1]),
/// buf.windows(2).all(|pair| pair[0] <= pair[1]),
/// "buffer is sorted",
/// );
/// ```
Expand Down

0 comments on commit 2cf339a

Please sign in to comment.