Merge pull request #653 from simmayor/master

task.md - 'decrease' probably should not have an argument
This commit is contained in:
Ilya Kantor 2018-12-07 13:19:42 +03:00 committed by GitHub
commit 23b5766b82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ Modify the code of `makeCounter()` so that the counter can also decrease and set
- `counter()` should return the next number (as before). - `counter()` should return the next number (as before).
- `counter.set(value)` should set the `count` to `value`. - `counter.set(value)` should set the `count` to `value`.
- `counter.decrease(value)` should decrease the `count` by 1. - `counter.decrease()` should decrease the `count` by 1.
See the sandbox code for the complete usage example. See the sandbox code for the complete usage example.