Skip to content

Commit a14ef46

Browse files
authored
Move comment to correct constant (#629)
1 parent bd9c164 commit a14ef46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bytes_mut.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ const MIN_ORIGINAL_CAPACITY_WIDTH: usize = 10;
9696
const ORIGINAL_CAPACITY_MASK: usize = 0b11100;
9797
const ORIGINAL_CAPACITY_OFFSET: usize = 2;
9898

99+
const VEC_POS_OFFSET: usize = 5;
99100
// When the storage is in the `Vec` representation, the pointer can be advanced
100101
// at most this value. This is due to the amount of storage available to track
101102
// the offset is usize - number of KIND bits and number of ORIGINAL_CAPACITY
102103
// bits.
103-
const VEC_POS_OFFSET: usize = 5;
104104
const MAX_VEC_POS: usize = usize::MAX >> VEC_POS_OFFSET;
105105
const NOT_VEC_POS_MASK: usize = 0b11111;
106106

0 commit comments

Comments
 (0)