Update src/liballoc/raw_vec.rs
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
This commit is contained in:
parent
b0006dff10
commit
58a26c8fc0
@ -172,7 +172,7 @@ impl<T> RawVec<T, Global> {
|
||||
/// # Undefined Behavior
|
||||
///
|
||||
/// The `ptr` must be allocated (on the system heap), and with the given `capacity`.
|
||||
/// Th `capacity` cannot exceed `isize::MAX` (only a concern on 32-bit systems).
|
||||
/// The `capacity` cannot exceed `isize::MAX` (only a concern on 32-bit systems).
|
||||
/// If the `ptr` and `capacity` come from a `RawVec`, then this is guaranteed.
|
||||
pub unsafe fn from_raw_parts(ptr: *mut T, capacity: usize) -> Self {
|
||||
RawVec {
|
||||
|
Loading…
Reference in New Issue
Block a user