diff options
author | 2023-09-11 19:12:11 +1000 | |
---|---|---|
committer | 2023-09-11 11:12:11 +0200 | |
commit | a14ef4617c1d041cd4b479cd7f5453054b8e639a (patch) | |
tree | c9c04a5de4b0d11c027bfcbf2a4cc7b513985662 /src | |
parent | bd9c164cb65cf9b80436c3229a6753dc9c4e73eb (diff) | |
download | bytes-a14ef4617c1d041cd4b479cd7f5453054b8e639a.tar.gz bytes-a14ef4617c1d041cd4b479cd7f5453054b8e639a.tar.zst bytes-a14ef4617c1d041cd4b479cd7f5453054b8e639a.zip |
Move comment to correct constant (#629)
Diffstat (limited to 'src')
-rw-r--r-- | src/bytes_mut.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bytes_mut.rs b/src/bytes_mut.rs index c5c2e52..79a8877 100644 --- a/src/bytes_mut.rs +++ b/src/bytes_mut.rs @@ -96,11 +96,11 @@ const MIN_ORIGINAL_CAPACITY_WIDTH: usize = 10; const ORIGINAL_CAPACITY_MASK: usize = 0b11100; const ORIGINAL_CAPACITY_OFFSET: usize = 2; +const VEC_POS_OFFSET: usize = 5; // When the storage is in the `Vec` representation, the pointer can be advanced // at most this value. This is due to the amount of storage available to track // the offset is usize - number of KIND bits and number of ORIGINAL_CAPACITY // bits. -const VEC_POS_OFFSET: usize = 5; const MAX_VEC_POS: usize = usize::MAX >> VEC_POS_OFFSET; const NOT_VEC_POS_MASK: usize = 0b11111; |