Skip to content

Commit 3408de4

Browse files
authored
Update arithmetic.md
1 parent ef8f104 commit 3408de4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/arithmetic.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ $ echo $((2#11111111))
182182

183183
- `<<`:位左移运算,把一个数字的所有位向左移动指定的位。
184184
- `>>`:位右移运算,把一个数字的所有位向右移动指定的位。
185-
- `&`:位的“与”运算,对两个数字的所有位执行一个`AND`操作。
185+
- `&`:位的“与”运算,对两个数字的所有位执行一个`AND`操作。
186186
- `|`:位的“或”运算,对两个数字的所有位执行一个`OR`操作。
187187
- `~`:位的“否”运算,对一个数字的所有位取反。
188188
- `!`:逻辑“否”运算
@@ -202,7 +202,7 @@ $ echo $((16<<2))
202202
64
203203
```
204204

205-
下面是`17`(二进制`1001`)和`3`(二进制`11`)的各种二进制运算的结果。
205+
下面是`17`(二进制`10001`)和`3`(二进制`11`)的各种二进制运算的结果。
206206

207207
```bash
208208
$ echo $((17&3))

0 commit comments

Comments
 (0)