We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f9d58c7 + 86cda2d commit 9389c69Copy full SHA for 9389c69
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