From a14ef4617c1d041cd4b479cd7f5453054b8e639a Mon Sep 17 00:00:00 2001 From: Lucas Kent Date: Mon, 11 Sep 2023 19:12:11 +1000 Subject: [PATCH] Move comment to correct constant (#629) --- src/bytes_mut.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bytes_mut.rs b/src/bytes_mut.rs index c5c2e52fc..79a8877d7 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;