Update library/alloc/src/collections/vec_deque.rs

Replace lshift with multiply

Co-authored-by: Mara Bos <m-ou.se@m-ou.se>
This commit is contained in:
Braden Nelson 2020-09-08 13:11:08 -05:00 committed by GitHub
parent c3c84ad027
commit e02952c0cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ mod tests;
const INITIAL_CAPACITY: usize = 7; // 2^3 - 1
const MINIMUM_CAPACITY: usize = 1; // 2 - 1
const MAXIMUM_ZST_CAPACITY: usize = 1 << ((core::mem::size_of::<usize>() << 3) - 1); // Largest possible power of two
const MAXIMUM_ZST_CAPACITY: usize = 1 << (core::mem::size_of::<usize>() * 8 - 1); // Largest possible power of two
/// A double-ended queue implemented with a growable ring buffer.
///