Skip to content

Commit

Permalink
Fix examples in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton committed Jul 24, 2017
1 parent 7b91ae6 commit d440cc9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -41,13 +41,13 @@ is used as the property name for the assignment property, while the property acc
used as the assignment target. This is illustrated by the following syntactic conversion:

```js
const { a.x } = o;
({ a.x } = o);
```

is identical in its behavior to:

```js
const { x: a.x } = o;
({ x: a.x } = o);
```

In addition to the dot notation, bracket notation can be used here as well. When the bracket
Expand All @@ -56,12 +56,12 @@ of the assignment property, while the property accessor itself is used as the as
This is illustrated by the following syntactic conversion:

```js
const { a["x"] } = o;
({ a["x"] } = o);
```

is identical in its behavior to:
```js
const { ["x"]: a["x"] } = o;
({ ["x"]: a["x"] } = o);
```

# Grammar
Expand Down

0 comments on commit d440cc9

Please sign in to comment.