Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SFBdragon authored Nov 22, 2024
1 parent 50889d0 commit 75d049a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion talc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static mut ARENA: [u8; 10000] = [0; 10000];
static ALLOCATOR: Talck<spin::Mutex<()>, ClaimOnOom> = Talc::new(unsafe {
// if we're in a hosted environment, the Rust runtime may allocate before
// main() is called, so we need to initialize the arena automatically
ClaimOnOom::new(Span::from_const_array(core::ptr::addr_of!(ARENA)))
ClaimOnOom::new(Span::from_array(core::ptr::addr_of!(ARENA).cast_mut()))
}).lock();

fn main() {
Expand Down

0 comments on commit 75d049a

Please sign in to comment.