mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
[elixir/en] Fix exception name
This commit is contained in:
parent
6e7c5c7933
commit
f1a5fb83d4
@ -4,6 +4,7 @@ contributors:
|
|||||||
- ["Joao Marques", "http://github.com/mrshankly"]
|
- ["Joao Marques", "http://github.com/mrshankly"]
|
||||||
- ["Dzianis Dashkevich", "https://github.com/dskecse"]
|
- ["Dzianis Dashkevich", "https://github.com/dskecse"]
|
||||||
- ["Ryan Plant", "https://github.com/ryanplant-au"]
|
- ["Ryan Plant", "https://github.com/ryanplant-au"]
|
||||||
|
- ["Ev Bogdanov", "https://github.com/evbogdanov"]
|
||||||
filename: learnelixir.ex
|
filename: learnelixir.ex
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -127,7 +128,8 @@ rem(10, 3) #=> 1
|
|||||||
# These operators expect a boolean as their first argument.
|
# These operators expect a boolean as their first argument.
|
||||||
true and true #=> true
|
true and true #=> true
|
||||||
false or 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.
|
# Elixir also provides `||`, `&&` and `!` which accept arguments of any type.
|
||||||
# All values except `false` and `nil` will evaluate to true.
|
# All values except `false` and `nil` will evaluate to true.
|
||||||
|
Loading…
Reference in New Issue
Block a user