Update src/liballoc/raw_vec.rs

Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
This commit is contained in:
Alexander Regueiro 2019-09-14 15:26:50 +01:00 committed by GitHub
parent b0006dff10
commit 58a26c8fc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {