Change "water" to "value" parameter in sample

This commit is contained in:
vasilevx 2019-04-12 02:59:37 +03:00 committed by GitHub
parent 892c56ac8a
commit 3b97c0ae80
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");
}