$i-- is formatted to $i -- with the reformatter.
Example:
for ($i = 99; $i -gt 1; $i--) {
Write-Output -InputObject "$i bottles of beer on the wall, $i bottles of beer."
Write-Output -InputObject "Take one down and pass it around, $($i - 1) bottles of beer on the wall."
}
is reformatted to:
for ($i = 99; $i -gt 1; $i --) {
Write-Output -InputObject "$i bottles of beer on the wall, $i bottles of beer."
Write-Output -InputObject "Take one down and pass it around, $($i - 1) bottles of beer on the wall."
}
On the other hand, $i++ is still $i++ after reformatting.
Is this a bug or a feature?
$i--is formatted to$i --with the reformatter.Example:
is reformatted to:
On the other hand,
$i++is still$i++after reformatting.Is this a bug or a feature?