diff options
| author | Tim Diekmann <tim.diekmann@3dvision.de> | 2020-03-25 19:08:56 +0100 |
|---|---|---|
| committer | Tim Diekmann <tim.diekmann@3dvision.de> | 2020-03-26 17:13:31 +0100 |
| commit | cbbdca059404a102db9daf2fa50ca8c1c9fc5ad2 (patch) | |
| tree | 1fab62a561213631d96a700d928f69755648d0b0 /src/liballoc/raw_vec.rs | |
| parent | b02e53f197566a88e175cddbf1e9c338744fd51a (diff) | |
| download | rust-cbbdca059404a102db9daf2fa50ca8c1c9fc5ad2.tar.gz rust-cbbdca059404a102db9daf2fa50ca8c1c9fc5ad2.zip | |
Fix wording in `RawVec::from_raw_parts(_in)`
Diffstat (limited to 'src/liballoc/raw_vec.rs')
| -rw-r--r-- | src/liballoc/raw_vec.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/raw_vec.rs b/src/liballoc/raw_vec.rs index efb7d4cae5d..cbafeae6417 100644 --- a/src/liballoc/raw_vec.rs +++ b/src/liballoc/raw_vec.rs @@ -104,7 +104,7 @@ impl<T> RawVec<T, Global> { /// /// The `ptr` must be allocated (on the system heap), and with the given `capacity`. /// The `capacity` cannot exceed `isize::MAX` for sized types. (only a concern on 32-bit - /// systems). ZSTs may have a capacity up to `usize::MAX`. + /// systems). ZST vectors may have a capacity up to `usize::MAX`. /// If the `ptr` and `capacity` come from a `RawVec`, then this is guaranteed. #[inline] pub unsafe fn from_raw_parts(ptr: *mut T, capacity: usize) -> Self { @@ -165,7 +165,7 @@ impl<T, A: AllocRef> RawVec<T, A> { /// /// The `ptr` must be allocated (via the given allocator `a`), and with the given `capacity`. /// The `capacity` cannot exceed `isize::MAX` for sized types. (only a concern on 32-bit - /// systems). ZSTs may have a capacity up to `usize::MAX`. + /// systems). ZST vectors may have a capacity up to `usize::MAX`. /// If the `ptr` and `capacity` come from a `RawVec` created via `a`, then this is guaranteed. #[inline] pub unsafe fn from_raw_parts_in(ptr: *mut T, capacity: usize, a: A) -> Self { |
