summaryrefslogtreecommitdiffhomepage
path: root/c.html.markdown
diff options
context:
space:
mode:
authorAdam <adam@adambard.com>2013-06-28 02:01:53 -0700
committerAdam <adam@adambard.com>2013-06-28 02:01:53 -0700
commit6634622d54c5a26dca9d1963974ec735261c13cd (patch)
tree408ae5b8eb742a031f060a8a9e6b89558ab61fa9 /c.html.markdown
parentddcab09ff88c29d0eacddf7757eceb751f35ed3d (diff)
Fixed c thing
Diffstat (limited to 'c.html.markdown')
-rw-r--r--c.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/c.html.markdown b/c.html.markdown
index a8df2e1b..4ac05299 100644
--- a/c.html.markdown
+++ b/c.html.markdown
@@ -132,7 +132,7 @@ f1 / f2; // => 0.5, plus or minus epsilon
~0x0F; // => 0xF0 (bitwise negation)
0x0F & 0xF0; // => 0x00 (bitwise AND)
0x0F | 0xF0; // => 0xFF (bitwise OR)
-0x04 | 0x0F; // => 0x0A (bitwise XOR)
+0x04 ^ 0x0F; // => 0x0B (bitwise XOR)
0x01 << 1; // => 0x02 (bitwise left shift (by 1))
0x02 >> 1; // => 0x01 (bitwise right shift (by 1))