summaryrefslogtreecommitdiffhomepage
path: root/elixir.html.markdown
diff options
context:
space:
mode:
authorEv Bogdanov <evbogdanov.com@gmail.com>2017-08-15 21:58:51 +0300
committerEv Bogdanov <evbogdanov.com@gmail.com>2017-08-15 21:58:51 +0300
commitf1a5fb83d4e1d1c4afdb860f1e332607a0b32e9d (patch)
tree200a35144e6e9e4a25d2d75b0911336ef9459282 /elixir.html.markdown
parent6e7c5c793327f4a63b13e555894597915ca91fda (diff)
[elixir/en] Fix exception name
Diffstat (limited to 'elixir.html.markdown')
-rw-r--r--elixir.html.markdown4
1 files changed, 3 insertions, 1 deletions
diff --git a/elixir.html.markdown b/elixir.html.markdown
index 9dfffc41..a74baa38 100644
--- a/elixir.html.markdown
+++ b/elixir.html.markdown
@@ -4,6 +4,7 @@ contributors:
- ["Joao Marques", "http://github.com/mrshankly"]
- ["Dzianis Dashkevich", "https://github.com/dskecse"]
- ["Ryan Plant", "https://github.com/ryanplant-au"]
+ - ["Ev Bogdanov", "https://github.com/evbogdanov"]
filename: learnelixir.ex
---
@@ -127,7 +128,8 @@ rem(10, 3) #=> 1
# These operators expect a boolean as their first argument.
true and true #=> true
false or true #=> true
-# 1 and true #=> ** (ArgumentError) argument error
+# 1 and true
+#=> ** (BadBooleanError) expected a boolean on left-side of "and", got: 1
# Elixir also provides `||`, `&&` and `!` which accept arguments of any type.
# All values except `false` and `nil` will evaluate to true.