From de36d0dffbfa437df4e7109edb15e46cd68adb76 Mon Sep 17 00:00:00 2001 From: Z Yin Date: Fri, 18 Jun 2021 13:18:05 -0400 Subject: [PATCH] update one code comment in 1-js/09-classes/04-private-protected-properties-methods It looks like code was changed some time ago, but comments didn't change accordingly. --- .../04-private-protected-properties-methods/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/09-classes/04-private-protected-properties-methods/article.md b/1-js/09-classes/04-private-protected-properties-methods/article.md index e26d0ec8..91efb89e 100644 --- a/1-js/09-classes/04-private-protected-properties-methods/article.md +++ b/1-js/09-classes/04-private-protected-properties-methods/article.md @@ -116,7 +116,7 @@ class CoffeeMachine { let coffeeMachine = new CoffeeMachine(100); // add water -coffeeMachine.waterAmount = -10; // Error: Negative water +coffeeMachine.waterAmount = -10; // _waterAmount will become 0, not -10 ``` Now the access is under control, so setting the water amount below zero becomes impossible.