From 299f4366bd335affb4b55a7ff1cbdb962b9ce1d7 Mon Sep 17 00:00:00 2001 From: Edward Amsden Date: Sat, 16 Jul 2022 08:27:09 -0500 Subject: [PATCH] rectification of comments --- rust/iron-planet/src/serialization.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/iron-planet/src/serialization.rs b/rust/iron-planet/src/serialization.rs index 48c2412..e2a5961 100644 --- a/rust/iron-planet/src/serialization.rs +++ b/rust/iron-planet/src/serialization.rs @@ -334,7 +334,7 @@ fn mat( if state.cursor + c_b_size + c_b_size + b_atom_size > state.slice.len() { Err(()) } else { - state.slice[state.cursor..state.cursor + c_b_size].fill(false); // a 1 bit for each bit in the atom size + state.slice[state.cursor..state.cursor + c_b_size].fill(false); // a 0 bit for each bit in the atom size state.slice.set(state.cursor + c_b_size, true); // a terminating 1 bit state.slice[state.cursor + c_b_size + 1..state.cursor + c_b_size + c_b_size] .copy_from_bitslice(&b_atom_size_atom.as_bitslice()[0..c_b_size - 1]); // the atom size excepting the most significant 1 (since we know where that is from the size-of-the-size)