From e1472112b215e88230a0e297e05556840103c38d Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Wed, 27 Dec 2023 19:45:00 +0000 Subject: [PATCH] Fix rustdoc link in doc comment of set_duty_cycle --- embedded-hal/src/pwm.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/embedded-hal/src/pwm.rs b/embedded-hal/src/pwm.rs index 782c45fff..68a94f54f 100644 --- a/embedded-hal/src/pwm.rs +++ b/embedded-hal/src/pwm.rs @@ -74,7 +74,9 @@ pub trait SetDutyCycle: ErrorType { /// Set the duty cycle to `duty / max_duty`. /// /// The caller is responsible for ensuring that the duty cycle value is less than or equal to the maximum duty cycle value, - /// as reported by `get_max_duty`. + /// as reported by [`max_duty_cycle`]. + /// + /// [`max_duty_cycle`]: SetDutyCycle::max_duty_cycle fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>; /// Set the duty cycle to 0%, or always inactive.