Skip to content

Commit 58a26c8

Browse files
Alexander RegueiroCentril
Alexander Regueiro
andauthored
Update src/liballoc/raw_vec.rs
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
1 parent b0006df commit 58a26c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/raw_vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ impl<T> RawVec<T, Global> {
172172
/// # Undefined Behavior
173173
///
174174
/// The `ptr` must be allocated (on the system heap), and with the given `capacity`.
175-
/// Th `capacity` cannot exceed `isize::MAX` (only a concern on 32-bit systems).
175+
/// The `capacity` cannot exceed `isize::MAX` (only a concern on 32-bit systems).
176176
/// If the `ptr` and `capacity` come from a `RawVec`, then this is guaranteed.
177177
pub unsafe fn from_raw_parts(ptr: *mut T, capacity: usize) -> Self {
178178
RawVec {

0 commit comments

Comments
 (0)