From acc9471915d74fc2cb475ea3220a249d81e3036e Mon Sep 17 00:00:00 2001 From: Michael Dusan Date: Sun, 10 Sep 2023 14:23:22 -0400 Subject: [PATCH] doc: inline comptime conditional block Better illustrate what happens to the block after inlining comptime conditionals. closes #17106 --- doc/langref.html.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index b5083ecf7d..2be783849a 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -7015,7 +7015,9 @@ test "try to compare bools" {

{#code_begin|syntax|compiler_generated_function#} fn max(a: bool, b: bool) bool { - return a or b; + { + return a or b; + } } {#code_end#}