Merge pull request #906 from vasilevx/patch-1
Change "water" to "value" parameter in example
This commit is contained in:
commit
7c4e330520
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue