Update embedded-workshop-book/src/enabling-uarte.md

Co-authored-by: Jonathan Pallant <jonathan.pallant@ferrous-systems.com>
This commit is contained in:
Tanks Transfeld 2023-03-21 18:16:38 +01:00 committed by GitHub
parent f93eb74acd
commit 7e9bf1bbc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,7 @@ use dk_pac::UARTE0;
### Step 3: Take ownership of the peripherals with `take()`
Take ownership of the peripherals with `take()`. Take note, the take returns an `Option<T>` so that needs to be taken care of. Bind the `UARTE0` peripheral to it's own variable.
Take ownership of the peripherals with `take()`. Be aware, the take returns an `Option<T>` so that needs to be taken care of. Bind the `UARTE0` peripheral to its own variable.
```rust
let periph = dk_pac::Peripherals::take().unwrap();