Skip to content

Commit ad94cfd

Browse files
authored
Fix remaining invalid prefix increment unary operator usage in Update chapter-07.md (#11052)
1 parent c984f0d commit ad94cfd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

reference/docs-conceptual/lang-spec/chapter-07.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -988,10 +988,10 @@ $i = 2147483647 # $i holds a value of type int
988988
989989
[int]$k = 0 # $k is constrained to int
990990
$k = [int]::MinValue # $k is set to -2147483648
991-
$--k # -2147483649 is too small to fit, imp-def behavior
991+
--$k # -2147483649 is too small to fit, imp-def behavior
992992
993993
$x = $null # target is unconstrained, $null goes to [int]0
994-
$--x # value treated as int, 0 becomes -1
994+
--$x # value treated as int, 0 becomes -1
995995
```
996996

997997
### 7.2.7 The unary -join operator

0 commit comments

Comments
 (0)