Skip to content

Commit 14704db

Browse files
authored
修改错误
书写错误,BigInt写成了BitInt
1 parent ba5ed7a commit 14704db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/proposals.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -570,11 +570,11 @@ JavaScript 原生提供`BigInt`对象,可以用作构造函数生成 BitInt
570570
```javascript
571571
BigInt(123) // 123n
572572
BigInt('123') // 123n
573-
BitInt(false) // 0n
574-
BitInt(true) // 1n
573+
BigInt(false) // 0n
574+
BigInt(true) // 1n
575575
```
576576
577-
`BitInt`构造函数必须有参数,而且参数必须可以正常转为数值,下面的用法都会报错。
577+
`BigInt`构造函数必须有参数,而且参数必须可以正常转为数值,下面的用法都会报错。
578578
579579
```javascript
580580
new BitInt() // TypeError

0 commit comments

Comments
 (0)