From 58a26c8fc0200c29bd753cf6fcfd80ee34a98920 Mon Sep 17 00:00:00 2001 From: Alexander Regueiro Date: Sat, 14 Sep 2019 15:26:50 +0100 Subject: [PATCH] Update src/liballoc/raw_vec.rs Co-Authored-By: Mazdak Farrokhzad --- src/liballoc/raw_vec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/liballoc/raw_vec.rs b/src/liballoc/raw_vec.rs index f1c5904afe6..cf025eee435 100644 --- a/src/liballoc/raw_vec.rs +++ b/src/liballoc/raw_vec.rs @@ -172,7 +172,7 @@ impl RawVec { /// # 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 {