diff --git a/docs/rules/no-func-assign.md b/docs/rules/no-func-assign.md index b4c582e8959..e35b0ed5169 100644 --- a/docs/rules/no-func-assign.md +++ b/docs/rules/no-func-assign.md @@ -22,6 +22,10 @@ foo = bar; function foo() { foo = bar; } + +var a = function hello() { + hello = 123; +}; ``` Examples of **incorrect** code for this rule, unlike the corresponding rule in JSHint: