aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAdam Greig <[email protected]>2023-10-15 00:45:42 +0100
committerAdam Greig <[email protected]>2023-10-15 00:47:56 +0100
commit7559f9e5834799b041d899767ef4305dcfdf0181 (patch)
tree7c94db16968031098af5dd0e4ea94f732fd08cd8 /README.md
parentc8fdbe19f91a02b86008c73ba021d8e7d2f4986b (diff)
time: Update documentation to use new after_x convenience methods
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index c4c01dfbc..e5a970621 100644
--- a/README.md
+++ b/README.md
@@ -62,9 +62,9 @@ async fn blink(pin: AnyPin) {
62 loop { 62 loop {
63 // Timekeeping is globally available, no need to mess with hardware timers. 63 // Timekeeping is globally available, no need to mess with hardware timers.
64 led.set_high(); 64 led.set_high();
65 Timer::after(Duration::from_millis(150)).await; 65 Timer::after_millis(150).await;
66 led.set_low(); 66 led.set_low();
67 Timer::after(Duration::from_millis(150)).await; 67 Timer::after_millis(150).await;
68 } 68 }
69} 69}
70 70