mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-26 20:10:24 +00:00
Keep lines below 100 chars
This commit is contained in:
parent
e9da36a1de
commit
c1c0d19f01
@ -363,7 +363,8 @@ impl<T, S: Storage> QueueInner<T, S> {
|
||||
|
||||
/// Splits a queue into producer and consumer endpoints.
|
||||
///
|
||||
/// If you need this function in a `const` context, check out [`Queue::split_const`] and [`QueueView::split_const`].
|
||||
/// If you need this function in a `const` context,
|
||||
/// check out [`Queue::split_const`] and [`QueueView::split_const`].
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
@ -385,7 +386,8 @@ impl<T, S: Storage> QueueInner<T, S> {
|
||||
/// use critical_section::Mutex;
|
||||
/// use heapless::spsc::{Producer, Queue};
|
||||
///
|
||||
/// static PRODUCER: Mutex<RefCell<Option<Producer<'static, ()>>>> = Mutex::new(RefCell::new(None));
|
||||
/// static PRODUCER: Mutex<RefCell<Option<Producer<'static, ()>>>> =
|
||||
/// { Mutex::new(RefCell::new(None)) };
|
||||
///
|
||||
/// fn interrupt() {
|
||||
/// let mut producer = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user