Skip to content

Commit

Permalink
Update README_WASM.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SFBdragon authored Nov 22, 2024
1 parent 89b036f commit 50889d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion talc/README_WASM.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Or if your arena size is statically known, for example 16 MiB, `0x1000000`:
#[global_allocator]
static ALLOCATOR: talc::Talck<talc::locking::AssumeUnlockable, talc::ClaimOnOom> = {
static mut MEMORY: [u8; 0x1000000] = [0; 0x1000000];
let span = talc::Span::from_const_array(std::ptr::addr_of!(MEMORY));
let span = talc::Span::from_array(std::ptr::addr_of!(MEMORY).cast_mut());
talc::Talc::new(unsafe { talc::ClaimOnOom::new(span) }).lock()
};
```
Expand Down

0 comments on commit 50889d0

Please sign in to comment.