Skip to content

Commit 4c86e7c

Browse files
authored
Rollup merge of #154221 - DanielEScherzer:isize-lc, r=Mark-Simulacrum
`vec::as_mut_slice()`: use lowercase "isize" in safety comment To match other references to that type
2 parents 50fe743 + a677f46 commit 4c86e7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/alloc/src/vec/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1853,7 +1853,7 @@ impl<T, A: Allocator> Vec<T, A> {
18531853
// SAFETY: `slice::from_raw_parts_mut` requires pointee is a contiguous, aligned buffer of
18541854
// size `len` containing properly-initialized `T`s. Data must not be accessed through any
18551855
// other pointer for the returned lifetime. Further, `len * size_of::<T>` <=
1856-
// `ISIZE::MAX` and allocation does not "wrap" through overflowing memory addresses.
1856+
// `isize::MAX` and allocation does not "wrap" through overflowing memory addresses.
18571857
//
18581858
// * Vec API guarantees that self.buf:
18591859
// * contains only properly-initialized items within 0..len

0 commit comments

Comments
 (0)