From 38d58ad706f51c1285e708432b03ad374f35100d Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Thu, 11 Apr 2024 17:17:20 +0800 Subject: [PATCH] Update function.md --- docs/uts/function.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/uts/function.md b/docs/uts/function.md index 4e1c1696..e2c45fb4 100644 --- a/docs/uts/function.md +++ b/docs/uts/function.md @@ -350,7 +350,7 @@ fn() ``` ```ts -const fn: (() => void) | null = null +let fn: (() => void) | null = null fn = function () { console.log(fn) // 此时 fn 可以正常访问 } -- GitLab