From 75d049aaafe8a936f554a8930d90812719e3b0e8 Mon Sep 17 00:00:00 2001 From: Shaun Beautement Date: Fri, 22 Nov 2024 12:47:10 +0200 Subject: [PATCH] Update README.md --- talc/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talc/README.md b/talc/README.md index cb576af..df27b49 100644 --- a/talc/README.md +++ b/talc/README.md @@ -49,7 +49,7 @@ static mut ARENA: [u8; 10000] = [0; 10000]; static ALLOCATOR: Talck, 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() {