From a5acfee7c3ace898f876f8d6bdac6768f49d7409 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Fri, 5 Aug 2016 11:20:56 +0200 Subject: [PATCH] Improve some heading levels --- blog/post/2016-04-11-kernel-heap.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blog/post/2016-04-11-kernel-heap.md b/blog/post/2016-04-11-kernel-heap.md index 1229d357..93e172a1 100644 --- a/blog/post/2016-04-11-kernel-heap.md +++ b/blog/post/2016-04-11-kernel-heap.md @@ -141,7 +141,7 @@ But how do we deallocate memory in our bump allocator? Well, we don't ;). We jus (Don't worry, we will introduce a better allocator later in this post.) -### Custom Allocators in Rust +## Custom Allocators in Rust In order to use our crate as system allocator, we add some attributes at the beginning of the file: ``` rust @@ -320,7 +320,7 @@ The `collections` crate provides the [format!] and [vec!] macros, so we use `#[m [format!]: //doc.rust-lang.org/nightly/collections/macro.format!.html [vec!]: https://doc.rust-lang.org/nightly/collections/macro.vec!.html -## Testing +### Testing Now we should be able to allocate memory on the heap. Let's try it in our `rust_main`: