From 9a6c2de4ea473c06e1bb5731d51c9e9f64a6ba80 Mon Sep 17 00:00:00 2001 From: Jacob Rosenthal Date: Wed, 3 Nov 2021 18:19:43 -0700 Subject: [PATCH] fix safety comments --- embassy-nrf/src/pwm.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embassy-nrf/src/pwm.rs b/embassy-nrf/src/pwm.rs index c054addfb..ccf0e70af 100644 --- a/embassy-nrf/src/pwm.rs +++ b/embassy-nrf/src/pwm.rs @@ -67,7 +67,7 @@ impl<'d, T: Instance> PwmSeq<'d, T> { /// /// The returned API is safe unless you use `mem::forget` (or similar safe /// mechanisms) on stack allocated buffers which which have been passed to - /// [`send()`](Pwm::send) or [`receive`](Pwm::receive). + /// [`new()`](PwmSeq::new). #[allow(unused_unsafe)] pub fn new( _pwm: impl Unborrow + 'd, @@ -285,7 +285,7 @@ impl<'d, T: Instance> Pwm<'d, T> { /// /// The returned API is safe unless you use `mem::forget` (or similar safe /// mechanisms) on stack allocated buffers which which have been passed to - /// [`send()`](Pwm::send) or [`receive`](Pwm::receive). + /// [`new()`](Pwm::new). #[allow(unused_unsafe)] pub fn new( _pwm: impl Unborrow + 'd,