Skip to content

Commit cbbdca0

Browse files
committed
Fix wording in RawVec::from_raw_parts(_in)
1 parent b02e53f commit cbbdca0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/liballoc/raw_vec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl<T> RawVec<T, Global> {
104104
///
105105
/// The `ptr` must be allocated (on the system heap), and with the given `capacity`.
106106
/// The `capacity` cannot exceed `isize::MAX` for sized types. (only a concern on 32-bit
107-
/// systems). ZSTs may have a capacity up to `usize::MAX`.
107+
/// systems). ZST vectors may have a capacity up to `usize::MAX`.
108108
/// If the `ptr` and `capacity` come from a `RawVec`, then this is guaranteed.
109109
#[inline]
110110
pub unsafe fn from_raw_parts(ptr: *mut T, capacity: usize) -> Self {
@@ -165,7 +165,7 @@ impl<T, A: AllocRef> RawVec<T, A> {
165165
///
166166
/// The `ptr` must be allocated (via the given allocator `a`), and with the given `capacity`.
167167
/// The `capacity` cannot exceed `isize::MAX` for sized types. (only a concern on 32-bit
168-
/// systems). ZSTs may have a capacity up to `usize::MAX`.
168+
/// systems). ZST vectors may have a capacity up to `usize::MAX`.
169169
/// If the `ptr` and `capacity` come from a `RawVec` created via `a`, then this is guaranteed.
170170
#[inline]
171171
pub unsafe fn from_raw_parts_in(ptr: *mut T, capacity: usize, a: A) -> Self {

0 commit comments

Comments
 (0)