Skip to content

Commit 5515584

Browse files
committed
use 'cannot' (one word) in two prose passages
1 parent 8ed1924 commit 5515584

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ Other Style Guides
887887
<a name="functions--spread-vs-apply"></a><a name="7.14"></a>
888888
- [7.14](#functions--spread-vs-apply) Prefer the use of the spread syntax `...` to call variadic functions. eslint: [`prefer-spread`](https://eslint.org/docs/rules/prefer-spread)
889889

890-
> Why? It’s cleaner, you don’t need to supply a context, and you can not easily compose `new` with `apply`.
890+
> Why? It’s cleaner, you don’t need to supply a context, and you cannot easily compose `new` with `apply`.
891891

892892
```javascript
893893
// bad
@@ -3535,7 +3535,7 @@ Other Style Guides
35353535
```
35363536
35373537
<a name="naming--uppercase"></a>
3538-
- [23.10](#naming--uppercase) You may optionally uppercase a constant only if it (1) is exported, (2) is a `const` (it can not be reassigned), and (3) the programmer can trust it (and its nested properties) to never change.
3538+
- [23.10](#naming--uppercase) You may optionally uppercase a constant only if it (1) is exported, (2) is a `const` (it cannot be reassigned), and (3) the programmer can trust it (and its nested properties) to never change.
35393539

35403540
> Why? This is an additional tool to assist in situations where the programmer would be unsure if a variable might ever change. UPPERCASE_VARIABLES are letting the programmer know that they can trust the variable (and its properties) not to change.
35413541
- What about all `const` variables? - This is unnecessary, so uppercasing should not be used for constants within a file. It should be used for exported constants however.

0 commit comments

Comments
 (0)