summaryrefslogtreecommitdiffhomepage
path: root/julia.html.markdown
diff options
context:
space:
mode:
authorMartijn Visser <mgvisser@gmail.com>2018-08-15 17:00:35 +0200
committerMartijn Visser <mgvisser@gmail.com>2018-08-15 17:00:35 +0200
commit843ba7019323e6e7411cae9d4c0fa83ce98baf92 (patch)
treed3615eaafe6d140e589e56744b54589ecf9e919c /julia.html.markdown
parent9fab30a26a0de8603b19b95055f68af031c906bb (diff)
wrap lines longer than 80
Diffstat (limited to 'julia.html.markdown')
-rw-r--r--julia.html.markdown11
1 files changed, 7 insertions, 4 deletions
diff --git a/julia.html.markdown b/julia.html.markdown
index 71331818..07a051e1 100644
--- a/julia.html.markdown
+++ b/julia.html.markdown
@@ -55,7 +55,7 @@ xor(2, 4) # => 6 # bitwise xor
2 >> 1 # => 1 # arithmetic shift right
2 << 1 # => 4 # logical/arithmetic shift left
-# You can use the bitstring function to see the binary representation of a number.
+# Use the bitstring function to see the binary representation of a number.
bitstring(12345)
# => "0000000000000000000000000000000000000000000000000011000000111001"
bitstring(12345.0)
@@ -674,7 +674,8 @@ try
fight(Panther(), Lion("RAWR"))
catch e
println(e)
- # => MethodError(fight, (Panther("green"), Lion("green", "RAWR")), 0x000000000000557b)
+ # => MethodError(fight, (Panther("green"), Lion("green", "RAWR")),
+ # 0x000000000000557b)
end
# Also let the cat go first
@@ -682,10 +683,12 @@ fight(c::Cat, l::Lion) = println("The cat beats the Lion")
# This warning is because it's unclear which fight will be called in:
try
- fight(Lion("RAR"), Lion("brown", "rarrr")) # => prints The victorious cat says rarrr
+ fight(Lion("RAR"), Lion("brown", "rarrr"))
+ # => prints The victorious cat says rarrr
catch e
println(e)
- # => MethodError(fight, (Lion("green", "RAR"), Lion("brown", "rarrr")), 0x000000000000557c)
+ # => MethodError(fight, (Lion("green", "RAR"), Lion("brown", "rarrr")),
+ # 0x000000000000557c)
end
# The result may be different in other versions of Julia