From db40d26a9753cba5b6cd66d6cd4cbf5a4d802f0d Mon Sep 17 00:00:00 2001 From: Val Lorentz Date: Fri, 9 Aug 2024 09:35:22 +0200 Subject: [PATCH] Fix format of shift_end docstring It looked like this: https://docs.rs/bitvec/1.0.1/bitvec/array/struct.BitArray.html#method.shift_right --- src/slice.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/slice.rs b/src/slice.rs index f73efc49..a75beb89 100644 --- a/src/slice.rs +++ b/src/slice.rs @@ -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. ///