diff options
| author | Brent Kerby <blkerby@gmail.com> | 2019-05-18 16:22:59 -0600 |
|---|---|---|
| committer | Brent Kerby <blkerby@gmail.com> | 2019-05-18 16:22:59 -0600 |
| commit | 86cda2d48e14f5cb755f54e6728bd9485d04713e (patch) | |
| tree | bffe678a8d75f960f7de15389ea5d260da0b0487 /src/libcore/alloc.rs | |
| parent | 0f40ad9990ead688f6a0cd97efa686c0fb455386 (diff) | |
| download | rust-86cda2d48e14f5cb755f54e6728bd9485d04713e.tar.gz rust-86cda2d48e14f5cb755f54e6728bd9485d04713e.zip | |
Fix typos in docs of GlobalAlloc
Diffstat (limited to 'src/libcore/alloc.rs')
| -rw-r--r-- | src/libcore/alloc.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/alloc.rs b/src/libcore/alloc.rs index c124457118c..0451edec87b 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. /// |
