Skip to content

Commit

Permalink
Fix example in doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jannic committed Nov 14, 2024
1 parent f8155a1 commit ff5fa67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rp2040-hal/src/multicore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//! ```no_run
//! use rp2040_hal::{pac, gpio::Pins, sio::Sio, multicore::{Multicore, Stack}};
//!
//! static mut CORE1_STACK: Stack<4096> = Stack::new();
//! static CORE1_STACK: Stack<4096> = Stack::new();
//!
//! fn core1_task() {
//! loop {}
Expand All @@ -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 {}
//! }
Expand Down

0 comments on commit ff5fa67

Please sign in to comment.