Skip to content

Commit 42715f3

Browse files
authored
Merge pull request #560 from jannic/doc-fix
Fix rustdoc link in doc comment of set_duty_cycle
2 parents 4ea7435 + e147211 commit 42715f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

embedded-hal/src/pwm.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ pub trait SetDutyCycle: ErrorType {
7474
/// Set the duty cycle to `duty / max_duty`.
7575
///
7676
/// The caller is responsible for ensuring that the duty cycle value is less than or equal to the maximum duty cycle value,
77-
/// as reported by `get_max_duty`.
77+
/// as reported by [`max_duty_cycle`].
78+
///
79+
/// [`max_duty_cycle`]: SetDutyCycle::max_duty_cycle
7880
fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>;
7981

8082
/// Set the duty cycle to 0%, or always inactive.

0 commit comments

Comments
 (0)