Technically, the compactSize includes 0, but we start at 1 in lesson 10 to avoid 0 inputs.
Should make this more clear as it will create confusion later on in chapter 22. Perhaps can simply check if there are 0 inputs and then panic! early on and fix the compactSize function implementation.
Technically, the compactSize includes
0
, but we start at1
in lesson 10 to avoid 0 inputs.Should make this more clear as it will create confusion later on in chapter 22. Perhaps can simply check if there are 0 inputs and then
panic!
early on and fix the compactSize function implementation.