Commit acc9471915

Michael Dusan <michael.dusan@gmail.com>
2023-09-10 20:23:22
doc: inline comptime conditional block
Better illustrate what happens to the block after inlining comptime conditionals. closes #17106
1 parent d2014fe
Changed files (1)
doc/langref.html.in
@@ -7015,7 +7015,9 @@ test "try to compare bools" {
       </p>
       {#code_begin|syntax|compiler_generated_function#}
 fn max(a: bool, b: bool) bool {
-    return a or b;
+    {
+        return a or b;
+    }
 }
       {#code_end#}
       <p>