From 581d07c81c16bf35b4d037fd99ed355832142df5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E4=BA=9A=E5=AD=90?= <1689818364@qq.com> Date: Sun, 27 Aug 2017 21:58:05 +0800 Subject: [PATCH] =?UTF-8?q?x=20=E8=B2=8C=E4=BC=BC=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E7=94=A8=E5=88=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/function.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/function.md b/docs/function.md index 85565dc..ff610c8 100644 --- a/docs/function.md +++ b/docs/function.md @@ -313,7 +313,7 @@ foo() // ReferenceError: x is not defined ```javascript let foo = 'outer'; -function bar(func = x => foo) { +function bar(func = () => foo) { let foo = 'inner'; console.log(func()); }