Skip to content

Commit 7c4e330

Browse files
authored
Merge pull request #906 from vasilevx/patch-1
Change "water" to "value" parameter in example
2 parents dda595e + 3b97c0a commit 7c4e330

File tree

1 file changed

+1
-1
lines changed
  • 1-js/09-classes/05-private-protected-properties-methods

1 file changed

+1
-1
lines changed

1-js/09-classes/05-private-protected-properties-methods/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ class CoffeeMachine {
199199
*/!*
200200

201201
*!*
202-
#checkWater(water) {
202+
#checkWater(value) {
203203
if (value < 0) throw new Error("Negative water");
204204
if (value > this.#waterLimit) throw new Error("Too much water");
205205
}

0 commit comments

Comments
 (0)