summaryrefslogtreecommitdiffhomepage
path: root/ruby.html.markdown
diff options
context:
space:
mode:
authorAndrew Backes <backes.andrew@gmail.com>2015-10-15 23:02:03 -0500
committerAndrew Backes <backes.andrew@gmail.com>2015-10-15 23:02:03 -0500
commit46c37fd745c297cb97596a42400c1b4af2e3bba7 (patch)
treeb614e10207d3fcee6de8da3b4f6069bd6edcad9b /ruby.html.markdown
parent66bc42e31bf62a1592f9b763e12c0b963b3e7d3d (diff)
[ruby/en] bitwise xor operator
Basic arithmetic bitwise xor operator example
Diffstat (limited to 'ruby.html.markdown')
-rw-r--r--ruby.html.markdown1
1 files changed, 1 insertions, 0 deletions
diff --git a/ruby.html.markdown b/ruby.html.markdown
index 0e798706..946e01d5 100644
--- a/ruby.html.markdown
+++ b/ruby.html.markdown
@@ -40,6 +40,7 @@ You shouldn't either
35 / 5 #=> 7
2**5 #=> 32
5 % 3 #=> 2
+5 ^ 6 #=> 3
# Arithmetic is just syntactic sugar
# for calling a method on an object