Skip to content

Commit e4d1a26

Browse files
authored
Merge pull request wangdoc#46 from Sayoko123f/main
fix: typo in comment.md
2 parents 39891fe + 96f4e00 commit e4d1a26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/comment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ x = 0;
4242
x = false; // 不报错
4343
```
4444

45-
上面示例中,最后一行是类型错误,变量`x`的类型是`number`,不能等于布尔值。但是因为前面加上了`// @ts-expect-error`,编译器会跳过这一行的类型检查,所以不会报错。
45+
上面示例中,最后一行是类型错误,变量`x`的类型是`number`,不能等于布尔值。但是因为前面加上了`// @ts-ignore`,编译器会跳过这一行的类型检查,所以不会报错。
4646

4747
## `// @ts-expect-error`
4848

0 commit comments

Comments
 (0)