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