| ... | ... | @@ -429,7 +429,7 @@ |
| 429 | 429 | {#header_open|Top-Level Doc Comments#} |
| 430 | 430 | <p> |
| 431 | 431 | A top-level doc comment is one that begins with two slashes and an exclamation |
| 432 | | point: {#syntax#}//!{#endsyntax#}; it documents the current module. |
| 432 | point: {#syntax#}//!{#endsyntax#}; it documents the current source file. |
| 433 | 433 | </p> |
| 434 | 434 | <p> |
| 435 | 435 | It is a compile error if a top-level doc comment is not placed at the start |
| ... | ... | @@ -2471,7 +2471,7 @@ or |
| 2471 | 2471 | <p>Unions can be declared with an enum tag type. |
| 2472 | 2472 | This turns the union into a <em>tagged</em> union, which makes it eligible |
| 2473 | 2473 | to use with {#link|switch#} expressions. When switching on tagged unions, |
| 2474 | | the tag value can be obtained using an additional capture. |
| 2474 | the tag value can be obtained using an additional capture. |
| 2475 | 2475 | Tagged unions coerce to their tag type: {#link|Type Coercion: Unions and Enums#}. |
| 2476 | 2476 | </p> |
| 2477 | 2477 | {#code|test_tagged_union.zig#} |