diff --git a/blog/content/second-edition/posts/11-allocator-designs/index.md b/blog/content/second-edition/posts/11-allocator-designs/index.md index de3601c3..aa216c60 100644 --- a/blog/content/second-edition/posts/11-allocator-designs/index.md +++ b/blog/content/second-edition/posts/11-allocator-designs/index.md @@ -1118,7 +1118,8 @@ To use our new `FixedSizeBlockAllocator`, we need to update the `ALLOCATOR` stat use fixed_size_block::FixedSizeBlockAllocator; #[global_allocator] -static ALLOCATOR: Locked = Locked::new(FixedSizeBlockAllocator::new()); +static ALLOCATOR: Locked = Locked::new( + FixedSizeBlockAllocator::new()); ``` Since the `init` function behaves the same for all allocators we implemented, we don't need to modify the `init` call in `init_heap`.