Skip to content

Commit bdfbc0d

Browse files
authored
Update qemu.md
1 parent c17e31e commit bdfbc0d

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/start/qemu.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Whenever you see the word "app" you should replace it with the name you selected
8484
for your project. Or, you could also name your project "app" and avoid the
8585
substitutions.
8686

87-
For convenience here's the source code of `src/main.rs`:
87+
For convenience here are the most important parts of the source code in `src/main.rs`:
8888

8989
``` console
9090
$ cat src/main.rs
@@ -94,11 +94,7 @@ $ cat src/main.rs
9494
#![no_std]
9595
#![no_main]
9696

97-
// pick a panicking behavior
98-
extern crate panic_halt; // you can put a breakpoint on `rust_begin_unwind` to catch panics
99-
// extern crate panic_abort; // requires nightly
100-
// extern crate panic_itm; // logs messages over ITM; requires ITM support
101-
// extern crate panic_semihosting; // logs messages to the host stderr; requires a debugger
97+
extern crate panic_halt;
10298

10399
use cortex_m_rt::entry;
104100

@@ -122,7 +118,8 @@ with `no_main` is that using the `main` interface in `no_std` context requires
122118
nightly.
123119

124120
`extern crate panic_halt;`. This crate provides a `panic_handler` that defines
125-
the panicking behavior of the program. More on this later on.
121+
the panicking behavior of the program. We will cover this in more detail in the
122+
[Panicking](panicking.md) chapter of the book.
126123

127124
[`#[entry]`] is an attribute provided by the [`cortex-m-rt`] crate that's used
128125
to mark the entry point of the program. As we are not using the standard `main`

0 commit comments

Comments
 (0)