Skip to content

Commit ee98d87

Browse files
MichaelByrneAUandrewrk
authored andcommitted
Minor rewording of "Shadowing" section within language reference
1 parent 6aeb6bc commit ee98d87

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/langref.html.in

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3872,7 +3872,7 @@ test "labeled break from labeled block expression" {
38723872
{#see_also|Labeled while|Labeled for#}
38733873

38743874
{#header_open|Shadowing#}
3875-
<p>It is never allowed for an identifier to "hide" another one by using the same name:</p>
3875+
<p>Identifiers are never allowed to "hide" other identifiers by using the same name:</p>
38763876
{#code_begin|test_err|local shadows declaration#}
38773877
const pi = 3.14;
38783878

@@ -3884,8 +3884,9 @@ test "inside test block" {
38843884
}
38853885
{#code_end#}
38863886
<p>
3887-
Because of this, when you read Zig code you can rely on an identifier always meaning the same thing,
3888-
within the scope it is defined. Note that you can, however use the same name if the scopes are separate:
3887+
Because of this, when you read Zig code you can always rely on an identifier to consistently mean
3888+
the same thing within the scope it is defined. Note that you can, however, use the same name if
3889+
the scopes are separate:
38893890
</p>
38903891
{#code_begin|test|test_scopes#}
38913892
test "separate scopes" {

0 commit comments

Comments
 (0)