diff --git a/src/idpf.rs b/src/idpf.rs index f13f37ff..9d265379 100644 --- a/src/idpf.rs +++ b/src/idpf.rs @@ -669,9 +669,9 @@ where { fn encode(&self, bytes: &mut Vec) -> 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 = BitVec::with_capacity(self.inner_correction_words.len() * 2 + 2); for correction_words in self.inner_correction_words.iter() {