authorgravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2023-09-10 14:23:22-04:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2023-09-11 00:29:56+03:00
logacc9471915d74fc2cb475ea3220a249d81e3036e
tree5cad1a894155c77abac77ccf6b2a7ecf5cbd230e
parentd2014fe9713794f6cc0830301a1110d5e92d0ff0

doc: inline comptime conditional block

Better illustrate what happens to the block after inlining comptime conditionals. closes #17106

1 files changed, 3 insertions(+), 1 deletions(-)

doc/langref.html.in+3-1
...@@ -7015,7 +7015,9 @@ test "try to compare bools" {...@@ -7015,7 +7015,9 @@ test "try to compare bools" {
7015 </p>7015 </p>
7016 {#code_begin|syntax|compiler_generated_function#}7016 {#code_begin|syntax|compiler_generated_function#}
7017fn max(a: bool, b: bool) bool {7017fn max(a: bool, b: bool) bool {
7018 return a or b;7018 {
7019 return a or b;
7020 }
7019}7021}
7020 {#code_end#}7022 {#code_end#}
7021 <p>7023 <p>