commit acc9471915d74fc2cb475ea3220a249d81e3036e (tree)
parent d2014fe9713794f6cc0830301a1110d5e92d0ff0
Author: Michael Dusan <michael.dusan@gmail.com>
Date: Sun, 10 Sep 2023 14:23:22 -0400
doc: inline comptime conditional block
Better illustrate what happens to the block after inlining comptime
conditionals.
closes #17106
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/doc/langref.html.in b/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>