File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ func (b *BitArray) LSBsFromLSB(x *BitArray, n uint8) *BitArray {
104
104
}
105
105
106
106
// Returns the least significant bits of `x` with `n` counted from the most significant bit, starting at 0.
107
+ // Think of this method as array[n:]
107
108
// For example:
108
109
//
109
110
// x = 11001011 (len=8)
@@ -159,6 +160,7 @@ func (b *BitArray) EqualMSBs(x *BitArray) bool {
159
160
160
161
// Sets the bit array to the most significant 'n' bits of x, that is position 0 to n (exclusive).
161
162
// If n >= x.len, the bit array is an exact copy of x.
163
+ // Think of this method as array[0:n]
162
164
// For example:
163
165
//
164
166
// x = 11001011 (len=8)
@@ -327,6 +329,7 @@ func (b *BitArray) AppendBit(x *BitArray, bit uint8) *BitArray {
327
329
// Sets the bit array to a subset of x from startPos (inclusive) to endPos (exclusive),
328
330
// where position 0 is the MSB. If startPos >= endPos or if startPos >= x.len,
329
331
// returns an empty BitArray.
332
+ // Think of this method as array[start:end]
330
333
// For example:
331
334
//
332
335
// x = 001011011 (len=9)
You can’t perform that action at this time.
0 commit comments