Merge pull request #136 from flinchtheone/patch-1

Changed 'i' variable to 'counter'
This commit is contained in:
Ilya Kantor 2017-08-12 13:38:13 +02:00 committed by GitHub
commit 3b2b4fc6c2

View file

@ -266,7 +266,7 @@ Operators `++` and `--` can be placed both after and before the variable.
- When the operator goes after the variable, it is called a "postfix form": `counter++`.
- The "prefix form" is when the operator stands before the variable: `++counter`.
Both of these records do the same: increase `i` by `1`.
Both of these records do the same: increase `counter` by `1`.
Is there any difference? Yes, but we can only see it if we use the returned value of `++/--`.