Skip to content

Commit 4af091a

Browse files
committed
docs: link to items by name
1 parent 4741426 commit 4af091a

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/eh1/delay.rs

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
//! Delay mock implementations, implementing both sync and async
2-
//! [`BlockingDelay`](https://docs.rs/embedded-hal/latest/embedded_hal/delay/trait.BlockingDelay.html)
2+
//! [`DelayNs`](https://docs.rs/embedded-hal/1/embedded_hal/delay/trait.DelayNs.html)
33
//! traits.
44
//!
55
//! ## Choosing a Delay Implementation
66
//!
77
//! There are three implementations available depending on your use case:
88
//!
9-
//! - If you want **no actual delay**, create a
10-
//! [`NoopDelay`](struct.NoopDelay.html) stub. It will always return
11-
//! immediately, without a delay. This is useful for fast tests, where you
12-
//! don't actually need to wait for the hardware.
9+
//! - If you want **no actual delay**, create a [`NoopDelay`] stub.
10+
//! It will always return immediately, without a delay.
11+
//! This is useful for fast tests, where you don't actually need to wait for
12+
//! the hardware.
1313
//! - If you do want the **real delay behavior** when running your tests, use
14-
//! [`StdSleep`](struct.StdSleep.html) stub implementation, which uses
15-
//! [`std::thread::sleep`](https://doc.rust-lang.org/std/thread/fn.sleep.html)
16-
//! to implement the delay.
14+
//! [`StdSleep`] stub implementation, which uses [`std::thread::sleep`] to
15+
//! implement the delay.
1716
//! - For a **configurable delay** implementation that supports expectations,
18-
//! use the [`CheckedDelay`](type.CheckedDelay.html) mock. By default it
19-
//! doesn't perform an actual delay, but allows the user to enable them
20-
//! individually for each expected call.
17+
//! use the [`CheckedDelay`] mock. By default it doesn't perform an actual
18+
//! delay, but allows the user to enable them individually for each expected
19+
//! call.
2120
//!
2221
//! ## Usage
2322
//!

0 commit comments

Comments
 (0)