Merge pull request #19 from miraclesu/4.5bit

fixed Bit operators clerical error
This commit is contained in:
Joe Chen
2013-06-19 22:25:23 -07:00

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。