about summary refs log tree commit diff
path: root/src/liballoc/raw_vec.rs
diff options
context:
space:
mode:
authorAlexander Regueiro <alex@noldorin.com>2019-09-14 15:26:50 +0100
committerGitHub <noreply@github.com>2019-09-14 15:26:50 +0100
commit58a26c8fc0200c29bd753cf6fcfd80ee34a98920 (patch)
tree0a01f740e7615f8973e009bc24edff75ac9495cf /src/liballoc/raw_vec.rs
parentb0006dff1041f0eea718ca29607cd6ec372e4e30 (diff)
downloadrust-58a26c8fc0200c29bd753cf6fcfd80ee34a98920.tar.gz
rust-58a26c8fc0200c29bd753cf6fcfd80ee34a98920.zip
Update src/liballoc/raw_vec.rs
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
Diffstat (limited to 'src/liballoc/raw_vec.rs')
-rw-r--r--src/liballoc/raw_vec.rs2
1 files changed, 1 insertions, 1 deletions
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<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 {