authorgravatar for zirunis@noreply.codeberg.orgzirunis <zirunis@noreply.codeberg.org> 2026-01-06 21:31:26+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-08-09 10:43:51+02:00
log828a5414db01df38bb2ace6034cf64330e776fd9
tree673c1d13b9e8193553e7cbb4dda1288c3cdcd3ca
parentc9dc9b798cdf03e792c214268b1b46fbee1d6c54

Manually add shell command and output of float_mode_example.zig to langref as a workaround until autodoc supports linking object files


1 files changed, 4 insertions(+), 0 deletions(-)

doc/langref.html.in+4
......@@ -1119,6 +1119,10 @@
11191119 otherwise the optimizer figures out all the values at compile-time,
11201120 which operates in strict mode.</p>
11211121 {#code|float_mode_exe.zig#}
1122 {#shell_samp#}$ zig build-exe float_mode_exe.zig float_mode_obj.o -O fast
1123$ ./float_mode_exe
1124optimized = 0.001
1125strict = 0.0009765625{#end_shell_samp#}
11221126
11231127 {#see_also|@setFloatMode|Division by Zero#}
11241128 {#header_close#}