Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$i -- #64

Open
warm-ice0x00 opened this issue Aug 14, 2021 · 0 comments
Open

$i -- #64

warm-ice0x00 opened this issue Aug 14, 2021 · 0 comments

Comments

@warm-ice0x00
Copy link

$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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant