Skip to content

Commit

Permalink
fix typo in esp-template.md & esp-idf-template.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Narukara authored and jessebraham committed Aug 30, 2023
1 parent 036ee41 commit 139c00e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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.

Expand Down

0 comments on commit 139c00e

Please sign in to comment.