Skip to content

Commit a3495e0

Browse files
author
jpersson
committed
Avoid the word "mutate" while explaining const
1 parent 60480c0 commit a3495e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Other Style Guides
8989

9090
- [2.1](#2.1) <a name='2.1'></a> Use `const` for all of your references; avoid using `var`.
9191

92-
> Why? This ensures that you can't reassign your references (mutation), which can lead to bugs and difficult to comprehend code.
92+
> Why? This ensures that you can't reassign your references, which can lead to bugs and difficult to comprehend code.
9393
9494
```javascript
9595
// bad
@@ -101,7 +101,7 @@ Other Style Guides
101101
const b = 2;
102102
```
103103
104-
- [2.2](#2.2) <a name='2.2'></a> If you must mutate references, use `let` instead of `var`.
104+
- [2.2](#2.2) <a name='2.2'></a> If you must reassign references, use `let` instead of `var`.
105105
106106
> Why? `let` is block-scoped rather than function-scoped like `var`.
107107

0 commit comments

Comments
 (0)