Skip to content

Commit

Permalink
Docs: reintroduce misspelling in valid-typeof example (#9753)
Browse files Browse the repository at this point in the history
This example is intended to be an invalid `typeof` string, to illustrate that the rule reports an error if the user makes a typo like this. However, the spelling was inadvertently corrected in aedae9d, so the documentation is now incorrect (it says that `valid-typeof` reports an error for that code, when in fact it does not).
  • Loading branch information
not-an-aardvark committed Dec 22, 2017
1 parent ae51eb2 commit eb4b1e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/valid-typeof.md
Expand Up @@ -20,7 +20,7 @@ Examples of **incorrect** code for this rule:
typeof foo === "strnig"
typeof foo == "undefimed"
typeof bar != "nunber"
typeof bar !== "function"
typeof bar !== "fucntion"
```

Examples of **correct** code for this rule:
Expand Down

0 comments on commit eb4b1e0

Please sign in to comment.