Merge pull request #40 from khalid-hussain/patch-1

Fixed a typo
This commit is contained in:
Ilya Kantor 2017-06-15 09:42:20 +03:00 committed by GitHub
commit 9845639f90

View file

@ -268,7 +268,7 @@ Operators `++` and `--` can be placed both after and before the variable.
Both of these records do the same: increase `i` by `1`. Both of these records do the same: increase `i` by `1`.
Is there any difference? Yes, but we can only see it if we use the retured value of `++/--`. Is there any difference? Yes, but we can only see it if we use the returned value of `++/--`.
Let's clarify. As we know, all operators return a value. Increment/decrement is not an exception here. The prefix form returns the new value, while the postfix form returns the old value (prior to increment/decrement). Let's clarify. As we know, all operators return a value. Increment/decrement is not an exception here. The prefix form returns the new value, while the postfix form returns the old value (prior to increment/decrement).