From a3495e07f484513db203e5d5654e47b221c19f4a Mon Sep 17 00:00:00 2001 From: jpersson Date: Tue, 17 Nov 2015 13:12:02 -0500 Subject: [PATCH] Avoid the word "mutate" while explaining `const` --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index faadf80e..9f895b9a 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ Other Style Guides - [2.1](#2.1) Use `const` for all of your references; avoid using `var`. - > Why? This ensures that you can't reassign your references (mutation), which can lead to bugs and difficult to comprehend code. + > Why? This ensures that you can't reassign your references, which can lead to bugs and difficult to comprehend code. ```javascript // bad @@ -101,7 +101,7 @@ Other Style Guides const b = 2; ``` - - [2.2](#2.2) If you must mutate references, use `let` instead of `var`. + - [2.2](#2.2) If you must reassign references, use `let` instead of `var`. > Why? `let` is block-scoped rather than function-scoped like `var`.