mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44: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
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue