mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
doc: inline comptime conditional block
Better illustrate what happens to the block after inlining comptime conditionals. closes #17106
This commit is contained in:
parent
d2014fe971
commit
acc9471915
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user