Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1504,9 +1504,10 @@ where
/// Shifts the contents of a bit-slice “right” (away from the zero-index),
/// clearing the “left” bits to `0`.
///
/// This is a strictly-worse analogue to taking `bits = &bits[.. bits.len()
/// - by]`: it must modify the entire memory region that `bits` governs, and
/// destroys contained information. Unless the actual memory layout and
/// This is a strictly-worse analogue to taking
/// `bits = &bits[.. bits.len() - by]`: it must modify the entire memory
/// region that `bits` governs, and destroys contained information.
/// Unless the actual memory layout and
/// contents of your bit-slice matters to your program, you should
/// *probably* prefer to munch your way backward through a bit-slice handle.
///
Expand Down