Skip to content

Commit f27df08

Browse files
authored
Fixes #10906 - Fix typo (#10908)
* Fix typo * Update array limit for 5.1
1 parent ea7c6e1 commit f27df08

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,9 @@ You can also create ranges in reverse order.
523523
The start and end values of the range can be any pair of expressions that
524524
evaluate to an integer or a character. The endpoints of the range must be
525525
convertible to signed 32-bit integers (`[int32]`). Larger values cause an
526-
error. Also, if the range is captured in an array, the count of resulting is
527-
limited to maximum size of an array in .NET, which is `[int]::MaxValue - 56`.
526+
error. Also, if the range is captured in an array, the size of resulting array
527+
is limited to `268435448` (or `256mb - 8`). This is maximum size of an array in
528+
.NET Framework.
528529

529530
For example, you could use the members of an enumeration for your start and end
530531
values.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,8 +593,8 @@ You can also create ranges in reverse order.
593593
The start and end values of the range can be any pair of expressions that
594594
evaluate to an integer or a character. The endpoints of the range must be
595595
convertible to signed 32-bit integers (`[int32]`). Larger values cause an
596-
error. Also, if the range is captured in an array, the count of resulting is
597-
limited to maximum size of an array in .NET, which is `[int]::MaxValue - 56`.
596+
error. Also, if the range is captured in an array, the size of resulting array
597+
is limited to `[int]::MaxValue - 56`. This is maximum size of an array in .NET.
598598

599599
For example, you could use the members of an enumeration for your start and end
600600
values.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,8 +593,8 @@ You can also create ranges in reverse order.
593593
The start and end values of the range can be any pair of expressions that
594594
evaluate to an integer or a character. The endpoints of the range must be
595595
convertible to signed 32-bit integers (`[int32]`). Larger values cause an
596-
error. Also, if the range is captured in an array, the count of resulting is
597-
limited to maximum size of an array in .NET, which is `[int]::MaxValue - 56`.
596+
error. Also, if the range is captured in an array, the size of resulting array
597+
is limited to `[int]::MaxValue - 56`. This is maximum size of an array in .NET.
598598

599599
For example, you could use the members of an enumeration for your start and end
600600
values.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,8 +593,8 @@ You can also create ranges in reverse order.
593593
The start and end values of the range can be any pair of expressions that
594594
evaluate to an integer or a character. The endpoints of the range must be
595595
convertible to signed 32-bit integers (`[int32]`). Larger values cause an
596-
error. Also, if the range is captured in an array, the count of resulting is
597-
limited to maximum size of an array in .NET, which is `[int]::MaxValue - 56`.
596+
error. Also, if the range is captured in an array, the size of resulting array
597+
is limited to `[int]::MaxValue - 56`. This is maximum size of an array in .NET.
598598

599599
For example, you could use the members of an enumeration for your start and end
600600
values.

reference/7.5/Microsoft.PowerShell.Core/About/about_Operators.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,8 +593,8 @@ You can also create ranges in reverse order.
593593
The start and end values of the range can be any pair of expressions that
594594
evaluate to an integer or a character. The endpoints of the range must be
595595
convertible to signed 32-bit integers (`[int32]`). Larger values cause an
596-
error. Also, if the range is captured in an array, the count of resulting is
597-
limited to maximum size of an array in .NET, which is `[int]::MaxValue - 56`.
596+
error. Also, if the range is captured in an array, the size of resulting array
597+
is limited to `[int]::MaxValue - 56`. This is maximum size of an array in .NET.
598598

599599
For example, you could use the members of an enumeration for your start and end
600600
values.

0 commit comments

Comments
 (0)