From 139c00e1823ebfb01081ede79b2487254a0d5283 Mon Sep 17 00:00:00 2001 From: Narukara Date: Wed, 30 Aug 2023 11:37:51 +0800 Subject: [PATCH] fix typo in esp-template.md & esp-idf-template.md --- .../generate-project/esp-idf-template.md | 2 +- .../generate-project/esp-template.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/writing-your-own-application/generate-project/esp-idf-template.md b/src/writing-your-own-application/generate-project/esp-idf-template.md index ee8e691..c55d19d 100644 --- a/src/writing-your-own-application/generate-project/esp-idf-template.md +++ b/src/writing-your-own-application/generate-project/esp-idf-template.md @@ -79,7 +79,7 @@ The first line is an import that defines the ESP-IDF entry point when the root c Then, we have a usual main function with a few lines on it: - A call to `esp_idf_sys::link_patches` function that makes sure that a few patches to the ESP-IDF which are implemented in Rust are linked to the final executable -- We print on our console the famous "Hello World!" +- We print on our console the famous "Hello, world!" ## Running the Code diff --git a/src/writing-your-own-application/generate-project/esp-template.md b/src/writing-your-own-application/generate-project/esp-template.md index 6e57787..08aeaaa 100644 --- a/src/writing-your-own-application/generate-project/esp-template.md +++ b/src/writing-your-own-application/generate-project/esp-template.md @@ -60,7 +60,7 @@ Before going further, let's see what these files are for. ```rust,ignore 1 #![no_std] 2 #![no_main] - ``` +``` - `#![no_std]` - This tells the Rust compiler that this code doesn't use `libstd` @@ -125,7 +125,7 @@ Inside the `main` function we can find: - Without that code, the SoC would reboot after some time - There is another way to prevent the reboot: [feeding][wtd-feeding] the watchdog - `println!("Hello world!");` - - Prints "Hello Wolrd!" + - Prints "Hello world!" - `loop {}` - Since our function is supposed to never return, we just "do nothing" in a loop @@ -172,7 +172,7 @@ Commands: Hello world! ``` -What you see here are messages from the first and second stage bootloader, and then, our "Hello World" message! +What you see here are messages from the first and second stage bootloader, and then, our "Hello world" message! And that is exactly what the code is doing.