Skip to content

Commit 9dc116e

Browse files
Nigel-Ecmajskeet
andcommitted
Apply suggestions from code review
Co-authored-by: Jon Skeet <skeet@pobox.com>
1 parent 66d766c commit 9dc116e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

standard/statements.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,7 +1443,7 @@ A deconstructing foreach replaces the declaration and initialisation of a single
14431443

14441444
All variables assigned to by the *deconstructor* must be declared within the *deconstructor*, it is a compile time error for any *deconstructor_element* to be a *variable_reference*.
14451445

1446-
For a `foreach` statement of the form:
1446+
A foreach statement of the form:
14471447

14481448
```csharp
14491449
foreachdeconstructor» in x) «embedded_statement»
@@ -1469,7 +1469,7 @@ is semantically equivalent to:
14691469
}
14701470
```
14711471

1472-
this follows the behavior of synchronous foreach ([§13.9.5.2](statements.md#13952-synchronous-foreach)), differing by replacing the delaration and initialisation of a single iteration variable with a *deconstructing_assignment* which declares and assigns zero or more initialisation variables:
1472+
This follows the behavior of synchronous foreach ([§13.9.5.2](statements.md#13952-synchronous-foreach)), differing by replacing the delaration and initialisation of a single iteration variable with a *deconstructing_assignment* which declares and assigns zero or more initialisation variables:
14731473

14741474
- `C` and `E` are determined as for synchronous foreach
14751475
- `e` is not visible or accessible anywhere in the program accept as indicated in the above code
@@ -1502,7 +1502,7 @@ is semantically equivalent to:
15021502
}
15031503
```
15041504

1505-
this follows the behavior of asynchronous foreach ([§13.9.5.3](statements.md#13953-asynchronous-foreach)), differing by replacing the delaration and initialisation of a single iteration variable with a *deconstructing_assignment* which declares and assigns zero or more initialisation variables:
1505+
This follows the behavior of asynchronous foreach ([§13.9.5.3](statements.md#13953-asynchronous-foreach)), differing by replacing the delaration and initialisation of a single iteration variable with a *deconstructing_assignment* which declares and assigns zero or more initialisation variables:
15061506

15071507
- `enumerator` is not visible or accessible anywhere in the program accept as indicated in the above code
15081508
- the variables declared by the «deconstructor» are read-only to the «embedded_statement»

0 commit comments

Comments
 (0)