Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix formatting error in shift_right #262

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
5 changes: 3 additions & 2 deletions src/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1504,8 +1504,9 @@ 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
/// 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