Skip to content

Commit 3253190

Browse files
ehussRalfJung
andauthored
Apply suggestion from RalfJung
Co-authored-by: Ralf Jung <[email protected]>
1 parent 3de1d4e commit 3253190

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/beneath-std.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ We will probably need a nightly version of the compiler to produce
3030
a `#![no_std]` executable because on many platforms, we have to provide the
3131
`eh_personality` [lang item], which is unstable.
3232

33-
You will need to define a symbol for the entry point that is suitable for your target. For example, `main`, `_start`, `WinMain`, or whatever starting point is relevant for your target. Additionally, we use the `#![no_main]` attribute to override the compiler-inserted `main` shim.
33+
You will need to define a symbol for the entry point that is suitable for your target. For example, `main`, `_start`, `WinMain`, or whatever starting point is relevant for your target.
34+
Additionally, you need to use the `#![no_main]` attribute to prevent the compiler from attempting to generate an entry point itself.
3435

3536
Additionally, it's required to define a [panic handler function](panic-handler.html).
3637

0 commit comments

Comments
 (0)