We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 411197b commit a2d606fCopy full SHA for a2d606f
src/vec-alloc.md
@@ -182,7 +182,7 @@ fn grow(&mut self) {
182
// we need to make. We lose the ability to allocate e.g. 2/3rds of
183
// the address space with a single Vec of i16's on 32-bit though.
184
// Alas, poor Yorick -- I knew him, Horatio.
185
- assert!(old_num_bytes <= (::std::isize::MAX as usize) / 2,
+ assert!(old_num_bytes <= (isize::MAX as usize) / 2,
186
"capacity overflow");
187
188
let new_num_bytes = old_num_bytes * 2;
0 commit comments