Skip to content

Commit 2c1f76e

Browse files
committed
docs(types): edit function & bit
1 parent 2c9fb41 commit 2c1f76e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/operators/bit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ toInt32(Math.pow(2, 32) + 1) // 1
4141
toInt32(Math.pow(2, 32) - 1) // -1
4242
```
4343

44-
上面代码中,`toInt32`可以将小数转为整数。对于一般的整数,返回值不会有任何变化。对于大于2的32次方的整数,大于32位的数位都会被舍去。
44+
上面代码中,`toInt32`可以将小数转为整数。对于一般的整数,返回值不会有任何变化。对于大于或等于2的32次方的整数,大于32位的数位都会被舍去。
4545

4646
## 二进制或运算符
4747

docs/types/function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function add(x, y) {
7777

7878
```javascript
7979
var foo = new Function(
80-
'return "hello world"'
80+
'return "hello world";'
8181
);
8282

8383
// 等同于

0 commit comments

Comments
 (0)