From 828a5414db01df38bb2ace6034cf64330e776fd9 Mon Sep 17 00:00:00 2001 From: zirunis Date: Tue, 6 Jan 2026 21:31:26 +0100 Subject: [PATCH] Manually add shell command and output of float_mode_example.zig to langref as a workaround until autodoc supports linking object files --- doc/langref.html.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/langref.html.in b/doc/langref.html.in index 1a0d531b591faabdac3d75367ababda8eafcfa6d..d1c14d15f744c99e4cf6c951bdaed77ac0ba7f3b 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -1119,6 +1119,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 float_mode_obj.o -O fast +$ ./float_mode_exe +optimized = 0.001 +strict = 0.0009765625{#end_shell_samp#} {#see_also|@setFloatMode|Division by Zero#} {#header_close#} -- 2.54.0