From 86cda2d48e14f5cb755f54e6728bd9485d04713e Mon Sep 17 00:00:00 2001 From: Brent Kerby Date: Sat, 18 May 2019 16:22:59 -0600 Subject: [PATCH] Fix typos in docs of GlobalAlloc --- src/libcore/alloc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcore/alloc.rs b/src/libcore/alloc.rs index c124457118cb9..0451edec87b2b 100644 --- a/src/libcore/alloc.rs +++ b/src/libcore/alloc.rs @@ -480,7 +480,7 @@ pub unsafe trait GlobalAlloc { /// this allocator, /// /// * `layout` must be the same layout that was used - /// to allocated that block of memory, + /// to allocate that block of memory, #[stable(feature = "global_alloc", since = "1.28.0")] unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout); @@ -535,7 +535,7 @@ pub unsafe trait GlobalAlloc { /// * `ptr` must be currently allocated via this allocator, /// /// * `layout` must be the same layout that was used - /// to allocated that block of memory, + /// to allocate that block of memory, /// /// * `new_size` must be greater than zero. ///