Skip to content

Commit

Permalink
phil-opp/blog_os#1307: fix syntax error in documentation, bump versio…
Browse files Browse the repository at this point in the history
…n and publish
  • Loading branch information
kennystrawnmusic committed Mar 30, 2024
1 parent 93dda65 commit 10cc535
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use lazy_heap::LazyHeap;
#[global_allocator]
pub static ALLOC: LazyHeap = LazyHeap::new(|| {
// allocator initialization code goes here
})
});
```

This is a much more seamless, much less error-prone, set-it-and-forget-it way to initialize heap allocation than any other approach, because, with it, you can be guaranteed that any first attempt to use `alloc` will automatically initialize the heap for you.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//! #[global_allocator]
//! pub static ALLOC: LazyHeap = LazyHeap::new(|| {
//! // allocator initialization code goes here
//! })
//! });
//! ```
//!
//! This is a much more seamless, much less error-prone, set-it-and-forget-it way to initialize heap allocation than any other approach, because, with it, you can be guaranteed that any first attempt to use `alloc` will automatically initialize the heap for you.
Expand Down

0 comments on commit 10cc535

Please sign in to comment.