Skip to content

Commit

Permalink
Merge pull request #560 from jannic/doc-fix
Browse files Browse the repository at this point in the history
Fix rustdoc link in doc comment of set_duty_cycle
  • Loading branch information
MabezDev committed Dec 27, 2023
2 parents 4ea7435 + e147211 commit 42715f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion embedded-hal/src/pwm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 42715f3

Please sign in to comment.