1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-30 22:57:27 +00:00

Fix coding style in docs/function.md

This commit is contained in:
Xcat Liu 2016-05-18 11:13:05 +08:00
parent 73cff90609
commit b3d9aa82bf

View File

@ -955,7 +955,7 @@ foo(2, 4, 6, 8)
(function() { (function() {
return [ return [
(() => this.x).bind({ x: 'inner' })() (() => this.x).bind({ x: 'inner' })()
] ];
}).call({ x: 'outer' }); }).call({ x: 'outer' });
// ['outer'] // ['outer']
``` ```
@ -1363,7 +1363,7 @@ function tco(f) {
active = false; active = false;
return value; return value;
} }
} };
} }
var sum = tco(function(x, y) { var sum = tco(function(x, y) {