Skip to content

Commit 73606f1

Browse files
authored
Update 10 fold loop to agree with 3 fold output (#10304)
Fixes #10303
1 parent e93b619 commit 73606f1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

reference/5.1/Microsoft.PowerShell.Core/About/about_Arithmetic_Operators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ examples use the `+=` assignment operator to add items to an array:
341341

342342
```powershell
343343
$array = @()
344-
(0..9).foreach{ $array += $_ }
344+
(0..2).foreach{ $array += $_ }
345345
$array
346346
```
347347

reference/7.2/Microsoft.PowerShell.Core/About/about_Arithmetic_Operators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ examples use the `+=` assignment operator to add items to an array:
341341

342342
```powershell
343343
$array = @()
344-
(0..9).foreach{ $array += $_ }
344+
(0..2).foreach{ $array += $_ }
345345
$array
346346
```
347347

reference/7.3/Microsoft.PowerShell.Core/About/about_Arithmetic_Operators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ examples use the `+=` assignment operator to add items to an array:
341341

342342
```powershell
343343
$array = @()
344-
(0..9).foreach{ $array += $_ }
344+
(0..2).foreach{ $array += $_ }
345345
$array
346346
```
347347

reference/7.4/Microsoft.PowerShell.Core/About/about_Arithmetic_Operators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ examples use the `+=` assignment operator to add items to an array:
341341

342342
```powershell
343343
$array = @()
344-
(0..9).foreach{ $array += $_ }
344+
(0..2).foreach{ $array += $_ }
345345
$array
346346
```
347347

0 commit comments

Comments
 (0)