Skip to content

Commit

Permalink
Fix comment in IDPF public share encoding (#1169)
Browse files Browse the repository at this point in the history
  • Loading branch information
divergentdave authored Jan 6, 2025
1 parent d3a9fb5 commit e89c30a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/idpf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -669,9 +669,9 @@ where
{
fn encode(&self, bytes: &mut Vec<u8>) -> Result<(), CodecError> {
// Control bits need to be written within each byte in LSB-to-MSB order, and assigned into
// bytes in big-endian order. Thus, the first four levels will have their control bits
// encoded in the last byte, and the last levels will have their control bits encoded in the
// first byte.
// bytes in little-endian order. Thus, the first four levels will have their control bits
// encoded in the first byte, and the last levels will have their control bits encoded in the
// last byte.
let mut control_bits: BitVec<u8, Lsb0> =
BitVec::with_capacity(self.inner_correction_words.len() * 2 + 2);
for correction_words in self.inner_correction_words.iter() {
Expand Down

0 comments on commit e89c30a

Please sign in to comment.