From a20760e7e5c44705dc56e4d934b6d657c21b9b3e Mon Sep 17 00:00:00 2001 From: yuexing Date: Tue, 15 Aug 2023 14:52:38 +0800 Subject: [PATCH] =?UTF-8?q?docs(assert):=20=F0=9F=93=83=20fix=20descriptio?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/assert.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/assert.md b/docs/assert.md index 48e6f1e..1f982dd 100644 --- a/docs/assert.md +++ b/docs/assert.md @@ -429,7 +429,7 @@ const aValue:string|number = 'Hello'; isString(aValue); ``` -上面示例中,变量`aValue`可能是字符串,也可能是数组。但是,通过调用`isString()`,后面的代码就可以确定,变量`aValue`一定是字符串。 +上面示例中,变量`aValue`可能是字符串,也可能是数字。但是,通过调用`isString()`,后面的代码就可以确定,变量`aValue`一定是字符串。 断言函数的类型可以写成下面这样。