rtic-common: Fix safety section formatting

This commit is contained in:
Henrik Tjäder 2023-03-04 01:06:46 +01:00
parent 6ff9763a44
commit 5dc2c1d351

View file

@ -69,7 +69,9 @@ impl<T: Clone> LinkedList<T> {
/// Put an element at the back of the queue. /// Put an element at the back of the queue.
/// ///
/// SAFETY: The link must live until it is removed from the queue. /// # Safety
///
/// The link must live until it is removed from the queue.
pub unsafe fn push(&self, link: Pin<&Link<T>>) { pub unsafe fn push(&self, link: Pin<&Link<T>>) {
cs::with(|_| { cs::with(|_| {
// Make sure all previous writes are visible // Make sure all previous writes are visible