Skip to content

Commit a0b9606

Browse files
authored
Merge pull request ruanyf#740 from CosSalt/patch-3
书写错误
2 parents 163de7e + 3e8c8bf commit a0b9606

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/proposals.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ typeof 123n // 'bigint'
565565
566566
### BigInt 对象
567567
568-
JavaScript 原生提供`BigInt`对象,可以用作构造函数生成 BitInt 类型的数值。转换规则基本与`Number()`一致,将别的类型的值转为 BigInt。
568+
JavaScript 原生提供`BigInt`对象,可以用作构造函数生成 BigInt 类型的数值。转换规则基本与`Number()`一致,将别的类型的值转为 BigInt。
569569
570570
```javascript
571571
BigInt(123) // 123n
@@ -577,7 +577,7 @@ BigInt(true) // 1n
577577
`BigInt`构造函数必须有参数,而且参数必须可以正常转为数值,下面的用法都会报错。
578578
579579
```javascript
580-
new BitInt() // TypeError
580+
new BigInt() // TypeError
581581
BigInt(undefined) //TypeError
582582
BigInt(null) // TypeError
583583
BigInt('123n') // SyntaxError

0 commit comments

Comments
 (0)