mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
Update doc/langref.html.in
Co-authored-by: Joachim Schmidt <joachim.schmidt557@outlook.com>
This commit is contained in:
parent
50df1334f3
commit
e57458a94f
@ -263,7 +263,7 @@ pub fn main() !void {
|
||||
Next, a {#link|public function|Functions#}, {#syntax#}pub fn{#endsyntax#}, named <code>main</code>
|
||||
is declared. The <code>main</code> function is necessary because it tells the Zig compiler where the start of
|
||||
the program exists. Programs designed to be executed will need a {#syntax#}pub fn main{#endsyntax#} function.
|
||||
For more advanced Zig use cases, Zig offers other features to inform the compiler where the start of
|
||||
For more advanced use cases, Zig offers other features to inform the compiler where the start of
|
||||
the program exists. Libraries, on the other hand, do not need a <code>main</code> function because
|
||||
library code is usually called by other programs.
|
||||
</p>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user