We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f40ad9 commit 86cda2dCopy full SHA for 86cda2d
src/libcore/alloc.rs
@@ -480,7 +480,7 @@ pub unsafe trait GlobalAlloc {
480
/// this allocator,
481
///
482
/// * `layout` must be the same layout that was used
483
- /// to allocated that block of memory,
+ /// to allocate that block of memory,
484
#[stable(feature = "global_alloc", since = "1.28.0")]
485
unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout);
486
@@ -535,7 +535,7 @@ pub unsafe trait GlobalAlloc {
535
/// * `ptr` must be currently allocated via this allocator,
536
537
538
539
540
/// * `new_size` must be greater than zero.
541
0 commit comments