From cc64295a6313f8697ed02143390caa8fe3a63626 Mon Sep 17 00:00:00 2001 From: mlugg Date: Sat, 1 Feb 2025 19:45:08 +0000 Subject: [PATCH] langref: document modules, root source files, etc --- doc/langref.html.in | 163 ++++++++++++++++++++++-- doc/langref/TopLevelFields.zig | 18 +++ doc/langref/entry_point.zig | 20 +++ doc/langref/libc_export_entry_point.zig | 10 ++ doc/langref/panic_handler.zig | 18 +++ doc/langref/std_options.zig | 25 ++++ 6 files changed, 243 insertions(+), 11 deletions(-) create mode 100644 doc/langref/TopLevelFields.zig create mode 100644 doc/langref/entry_point.zig create mode 100644 doc/langref/libc_export_entry_point.zig create mode 100644 doc/langref/panic_handler.zig create mode 100644 doc/langref/std_options.zig diff --git a/doc/langref.html.in b/doc/langref.html.in index 5b41bb8c73..96034d9173 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -381,7 +381,7 @@ In this case, the {#syntax#}!{#endsyntax#} may be omitted from the return type of main because no errors are returned from the function.

- {#see_also|Values|Tuples|@import|Errors|Root Source File|Source Encoding|try#} + {#see_also|Values|Tuples|@import|Errors|Entry Point|Source Encoding|try#} {#header_close#} {#header_open|Comments#}

@@ -823,7 +823,7 @@ zig test is a tool that creates and runs a test build. By default, it builds and runs an executable program using the default test runner provided by the {#link|Zig Standard Library#} as its main entry point. During the build, {#syntax#}test{#endsyntax#} declarations found while - {#link|resolving|Root Source File#} the given Zig source file are included for the default test runner + {#link|resolving|File and Declaration Discovery#} the given Zig source file are included for the default test runner to run and report on.