Skip to content

Commit 114e599

Browse files
bors[bot]dkm
andauthored
Merge #158
158: Minor changes in doc r=thejpster a=dkm Fix one typo and add few words around await! and futures making more clear that both may not work on many targets. Co-authored-by: Marc Poulhiès <[email protected]>
2 parents f2a5638 + 276690a commit 114e599

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/lib.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
//! You can find platform agnostic drivers built on top of `embedded-hal` on crates.io by [searching
5151
//! for the *embedded-hal* keyword](https://crates.io/keywords/embedded-hal).
5252
//!
53-
//! If you writing a platform agnostic driver yourself you are highly encouraged to [add the
53+
//! If you are writing a platform agnostic driver yourself you are highly encouraged to [add the
5454
//! embedded-hal keyword](https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata)
5555
//! to your crate before publishing it!
5656
//!
@@ -235,8 +235,10 @@
235235
//!
236236
//! ### `futures`
237237
//!
238-
//! An example of running two tasks concurrently. First task: blink an LED every
239-
//! second. Second task: loop back data over the serial interface.
238+
//! An example of running two tasks concurrently. First task: blink a LED every
239+
//! second. Second task: loop back data over the serial interface. The target
240+
//! must provide the `libstd` in order to be able to use `futures`, which is not
241+
//! the case for many embedded targets.
240242
//!
241243
//! ```not_run
242244
//! extern crate embedded_hal as hal;
@@ -377,7 +379,9 @@
377379
//!
378380
//! ### `await`
379381
//!
380-
//! Same example as above but using `await!` instead of `futures`.
382+
//! Same example as above but using `await!` instead of `futures`
383+
//! (same remark concerning the availability of `libstd` on the
384+
//! target).
381385
//!
382386
//! ```not_run
383387
//! #![feature(generator_trait)]

0 commit comments

Comments
 (0)