From c864d3f834ff13a63fd017ffdd31b6d3943175ea Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Thu, 14 Nov 2024 21:31:42 +0000 Subject: [PATCH] Fix example in doc comment --- rp2040-hal/src/multicore.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rp2040-hal/src/multicore.rs b/rp2040-hal/src/multicore.rs index cde32144..c3a73554 100644 --- a/rp2040-hal/src/multicore.rs +++ b/rp2040-hal/src/multicore.rs @@ -23,7 +23,7 @@ //! let mut mc = Multicore::new(&mut pac.PSM, &mut pac.PPB, &mut sio.fifo); //! let cores = mc.cores(); //! let core1 = &mut cores[1]; -//! let _test = core1.spawn(unsafe { &mut CORE1_STACK.mem }, core1_task); +//! let _test = core1.spawn(CORE1_STACK.take().unwrap(), core1_task); //! // The rest of your application below this line //! # loop {} //! }