From a80583fb3e26e4ede954b4e730d0c9a9d8095bb0 Mon Sep 17 00:00:00 2001 From: Tanks Transfeld Date: Tue, 21 Mar 2023 18:17:16 +0100 Subject: [PATCH] Update embedded-workshop-book/src/enabling-uarte.md Co-authored-by: Jonathan Pallant --- embedded-workshop-book/src/enabling-uarte.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embedded-workshop-book/src/enabling-uarte.md b/embedded-workshop-book/src/enabling-uarte.md index bc6188e..10eebb4 100644 --- a/embedded-workshop-book/src/enabling-uarte.md +++ b/embedded-workshop-book/src/enabling-uarte.md @@ -94,7 +94,7 @@ uarte.enable.write(|w| w.enable().enabled()); ### Step 6: Disable the peripheral unsafely by writing raw bits into the register. -Write 0 into the register to disable it by passing the closure `|w| w.bits(0x00 as u32)` to the `write()` method. This action is unsafe, so it needs to be in an unsafe block. Call the helper function once more and run your code. Compare your output with the expected output on top of this page. +Write 0 into the register to disable it by passing the closure `|w| w.bits(0u32)` to the `write()` method. This action is unsafe, so it needs to be in an unsafe block. Call the helper function once more and run your code. Compare your output with the expected output on top of this page. ```rust unsafe {