Skip to content

Commit a2d606f

Browse files
committed
Use isize::MAX directly on type instead of module
1 parent 411197b commit a2d606f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vec-alloc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ fn grow(&mut self) {
182182
// we need to make. We lose the ability to allocate e.g. 2/3rds of
183183
// the address space with a single Vec of i16's on 32-bit though.
184184
// Alas, poor Yorick -- I knew him, Horatio.
185-
assert!(old_num_bytes <= (::std::isize::MAX as usize) / 2,
185+
assert!(old_num_bytes <= (isize::MAX as usize) / 2,
186186
"capacity overflow");
187187
188188
let new_num_bytes = old_num_bytes * 2;

0 commit comments

Comments
 (0)