diff --git a/doc/langref.html.in b/doc/langref.html.in index 3d3294e1e534..2c8caf4375fe 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -1120,6 +1120,10 @@ otherwise the optimizer figures out all the values at compile-time, which operates in strict mode.

{#code|float_mode_exe.zig#} + {#shell_samp#}$ zig build-exe float_mode_exe.zig -O ReleaseFast +$ ./float_mode_exe +optimized = 0.001 +strict = 0.0009765625{#end_shell_samp#} {#see_also|@setFloatMode|Division by Zero#} {#header_close#} diff --git a/doc/langref/float_mode_exe.zig b/doc/langref/float_mode_exe.zig index 02b731a7c502..29951bb6461c 100644 --- a/doc/langref/float_mode_exe.zig +++ b/doc/langref/float_mode_exe.zig @@ -10,3 +10,7 @@ pub fn main() void { } // syntax +// This file requires the object file of float_mode_obj.zig +// Currently the automatic generation of the langref runs each file independently +// and does therefore not support this use case +// The output for this snippet is written into the langref manually as a workaround