fixed Bit operators clerical error

This commit is contained in:
miraclesu
2013-06-20 13:10:38 +08:00
parent 25a93184a3
commit 8829928a5e

View File

@@ -240,19 +240,19 @@ Go 拥有以下复数类型:
对应位置上的值经过或运算结果,具体参见或运算符,第 4.5.1 节,并将 Ttrue替换为 1将 Ffalse替换为 0
1 & 1 -> 1
1 & 0 -> 1
0 & 1 -> 1
0 & 0 -> 0
1 | 1 -> 1
1 | 0 -> 1
0 | 1 -> 1
0 | 0 -> 0
- 按位异或 `^`
对应位置上的值根据以下规则组合:
1 & 1 -> 0
1 & 0 -> 1
0 & 1 -> 1
0 & 0 -> 0
1 ^ 1 -> 0
1 ^ 0 -> 1
0 ^ 1 -> 1
0 ^ 0 -> 0
- 位清除 `&^`:将指定位置上的值设置为 0。