aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rtic-common/src/wait_queue.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/rtic-common/src/wait_queue.rs b/rtic-common/src/wait_queue.rs
index 7387a984..b1aa7757 100644
--- a/rtic-common/src/wait_queue.rs
+++ b/rtic-common/src/wait_queue.rs
@@ -69,7 +69,9 @@ impl<T: Clone> LinkedList<T> {
/// 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>>) {
cs::with(|_| {
// Make sure all previous writes are visible