Skip to content

Commit

Permalink
Update docs/rules/computed-property-spacing.md
Browse files Browse the repository at this point in the history
Co-authored-by: Brandon Mills <btmills@users.noreply.github.com>
  • Loading branch information
whizzzkid and btmills committed Jan 15, 2021
1 parent 79e3bca commit d0f1a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/computed-property-spacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var obj = {
};

// applies to the spacing for dynamic keys (computed property key) when destructuring objects.
const ({ [a]: someProp } = obj); // someProp now maps to the value of prop.
const { [a]: someProp } = obj; // someProp now maps to the value of prop.
```

## Rule Details
Expand Down

0 comments on commit d0f1a75

Please sign in to comment.