Skip to content

Commit 0ea2581

Browse files
authored
Merge pull request #6 from thinkasany/main
docs: update description
2 parents 1026401 + 272e167 commit 0ea2581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/array.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ arr.push(123);
124124
arr.push('abc');
125125
```
126126

127-
上面示例中,数组变量`arr`的初始值是空数值,然后随着新成员的加入,TypeScript 会自动修改推断的数组类型。
127+
上面示例中,数组变量`arr`的初始值是空数组,然后随着新成员的加入,TypeScript 会自动修改推断的数组类型。
128128

129129
但是,类型推断的自动更新只发生初始值为空数组的情况。如果初始值不是空数组,类型推断就不会更新。
130130

0 commit comments

Comments
 (0)