Refactor [book chapter Example: Building a hello world program ] #865
Labels
documentation
Improvements or additions to documentation
refactor
internal change, cleanup, code-style-improvement
Is your refactor request related to a problem? Please describe.
Not a code refactor but documentation. I recently stumbled across the naming of the entrypoint function. It needs to be called
main
(unless explicitly set to sth else) and it needs to be a FUNCTION to be a stand-alone application. Using aPROGRAM
might seemingly work but will end in weird segfaults.Describe the solution you'd like
Maybe just mention why it needs to be called
main
and that the type needs to beFUNCTION
.Additional context
rusty/book/src/using_rusty.md
Lines 29 to 34 in b39608d
The text was updated successfully, but these errors were encountered: