diff options
author | Adam Bard <github@adambard.com> | 2017-08-18 10:11:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-18 10:11:47 -0700 |
commit | aac1e3599669dde74ca16529f99b785d651e9a9e (patch) | |
tree | 6d53cd002636ef8e7ab15ad2117b4572b9c4393f | |
parent | 90ab1bcc90c72ac4aaeef48cf7af25ab9a8c3650 (diff) | |
parent | a5188153799aace6d5a1dcb2aff3e86ea8c6ae9c (diff) |
Merge pull request #2826 from evbogdanov/master
[elixir/en] Fix exception name
-rw-r--r-- | elixir.html.markdown | 4 |
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. |