Skip to content

Commit c864d3f

Browse files
committed
Fix example in doc comment
1 parent f8155a1 commit c864d3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rp2040-hal/src/multicore.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
//! let mut mc = Multicore::new(&mut pac.PSM, &mut pac.PPB, &mut sio.fifo);
2424
//! let cores = mc.cores();
2525
//! let core1 = &mut cores[1];
26-
//! let _test = core1.spawn(unsafe { &mut CORE1_STACK.mem }, core1_task);
26+
//! let _test = core1.spawn(CORE1_STACK.take().unwrap(), core1_task);
2727
//! // The rest of your application below this line
2828
//! # loop {}
2929
//! }

0 commit comments

Comments
 (0)