| author | |
| committer | |
| log | acc9471915d74fc2cb475ea3220a249d81e3036e |
| tree | 5cad1a894155c77abac77ccf6b2a7ecf5cbd230e |
| parent | d2014fe9713794f6cc0830301a1110d5e92d0ff0 |
Better illustrate what happens to the block after inlining comptime
conditionals.
closes #171061 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#} |
| 7017 | fn max(a: bool, b: bool) bool { | 7017 | fn 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> |