Permalink
Browse files

minor typo: remove 'be' from 'be become'

After removing the typo, the latter part of the sentence is still a little unclear: if either form works, then will most developers prefer the shorter form because it's shorter? Or is it better in some other way?
  • Loading branch information...
scraggo committed Sep 15, 2017
1 parent cef9f59 commit 43ff6d78ed7799a5f49374c71d220a9747ab5fc9
Showing with 1 addition and 1 deletion.
  1. +1 −1 types & grammar/ch5.md
View
@@ -464,7 +464,7 @@ var a = res.a;
var b = res.b;
```
**Note:** `{ a, b }` is actually ES6 destructuring shorthand for `{ a: a, b: b }`, so either will work, but it's expected that the shorter `{ a, b }` will be become the preferred form.
**Note:** `{ a, b }` is actually ES6 destructuring shorthand for `{ a: a, b: b }`, so either will work, but it's expected that the shorter `{ a, b }` will become the preferred form.
Object destructuring with a `{ .. }` pair can also be used for named function arguments, which is sugar for this same sort of implicit object property assignment:

0 comments on commit 43ff6d7

Please sign in to comment.