Skip to content

Commit

Permalink
Docs: fix typo in prefer-destructuring.md example (#9930)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsemozhetbyt authored and not-an-aardvark committed Feb 6, 2018
1 parent f8d343f commit d64fbb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/prefer-destructuring.md
Expand Up @@ -40,7 +40,7 @@ var { foo } = object;
var foo = object.bar;

let foo;
({ foo } = object.bar);
({ foo } = object);
```

Examples of **incorrect** code when `enforceForRenamedProperties` is enabled:
Expand Down

0 comments on commit d64fbb4

Please sign in to comment.