Skip to content

Commit 9389c69

Browse files
authored
Rollup merge of #60947 - blkerby:global_alloc_typo, r=jonas-schievink
Fix typos in docs of GlobalAlloc
2 parents f9d58c7 + 86cda2d commit 9389c69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/alloc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ pub unsafe trait GlobalAlloc {
480480
/// this allocator,
481481
///
482482
/// * `layout` must be the same layout that was used
483-
/// to allocated that block of memory,
483+
/// to allocate that block of memory,
484484
#[stable(feature = "global_alloc", since = "1.28.0")]
485485
unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout);
486486

@@ -535,7 +535,7 @@ pub unsafe trait GlobalAlloc {
535535
/// * `ptr` must be currently allocated via this allocator,
536536
///
537537
/// * `layout` must be the same layout that was used
538-
/// to allocated that block of memory,
538+
/// to allocate that block of memory,
539539
///
540540
/// * `new_size` must be greater than zero.
541541
///

0 commit comments

Comments
 (0)