Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Docs: Fix grammar in “there’s nothing prevent you” (#11385)
Changed
“For example, there’s nothing prevent you from writing:”
to
“For example, there’s nothing preventing you from writing:”
  • Loading branch information
PoziWorld authored and not-an-aardvark committed Feb 13, 2019
1 parent de988bc commit 3e0c417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/no-shadow-restricted-names.md
@@ -1,6 +1,6 @@
# Disallow Shadowing of Restricted Names (no-shadow-restricted-names)

ES5 §15.1.1 Value Properties of the Global Object (`NaN`, `Infinity`, `undefined`) as well as strict mode restricted identifiers `eval` and `arguments` are considered to be restricted names in JavaScript. Defining them to mean something else can have unintended consequences and confuse others reading the code. For example, there's nothing prevent you from writing:
ES5 §15.1.1 Value Properties of the Global Object (`NaN`, `Infinity`, `undefined`) as well as strict mode restricted identifiers `eval` and `arguments` are considered to be restricted names in JavaScript. Defining them to mean something else can have unintended consequences and confuse others reading the code. For example, there's nothing preventing you from writing:

```js
var undefined = "foo";
Expand Down

0 comments on commit 3e0c417

Please sign in to comment.