Merge pull request #906 from vasilevx/patch-1

Change "water" to "value" parameter in example
This commit is contained in:
Ilya Kantor 2019-04-14 09:22:48 +03:00 committed by GitHub
commit 7c4e330520
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -199,7 +199,7 @@ class CoffeeMachine {
*/!*
*!*
#checkWater(water) {
#checkWater(value) {
if (value < 0) throw new Error("Negative water");
if (value > this.#waterLimit) throw new Error("Too much water");
}