mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-26 09:21:00 +03:00
[ruby/en] bitwise xor operator
Basic arithmetic bitwise xor operator example
This commit is contained in:
parent
66bc42e31b
commit
46c37fd745
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user