diff --git a/es6.md b/es6.md index 3354696e4..c74dd5fe1 100644 --- a/es6.md +++ b/es6.md @@ -415,7 +415,7 @@ numbers.map(n => n * 2) // Same as: numbers.map(function (n) { return n * 2 }) numbers.map(n => ({ result: n * 2 -}) +})) // Implicitly returning objects requires parentheses around the object ``` {: data-line="1,4,5,6"}