diff options
author | Byaruhanga Franklin <byaruhaf@rovcos.com> | 2015-11-19 15:51:08 +0300 |
---|---|---|
committer | Byaruhanga Franklin <byaruhaf@rovcos.com> | 2015-11-19 15:51:08 +0300 |
commit | 5a62ebbc85cf8c7436ba071b87fb4a584275ebbf (patch) | |
tree | fa0f3052fc5d0ab6194e1a5a5569562ca5272790 /erlang.html.markdown | |
parent | 9e4274f7c79d89e0069637f867f860a702a72e51 (diff) |
Replaced 'or' with a semicolons
Replaced 'or' with a semicolons since the paragraph above is talking about using semicolons
Diffstat (limited to 'erlang.html.markdown')
-rw-r--r-- | erlang.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erlang.html.markdown b/erlang.html.markdown index d6ed7b86..a57f295f 100644 --- a/erlang.html.markdown +++ b/erlang.html.markdown @@ -177,7 +177,7 @@ is_dog(A) -> false. % A guard sequence is either a single guard or a series of guards, separated % by semicolons (`;`). The guard sequence `G1; G2; ...; Gn` is true if at % least one of the guards `G1`, `G2`, ..., `Gn` evaluates to `true`. -is_pet(A) when is_atom(A), (A =:= dog) or (A =:= cat) -> true; +is_pet(A) when is_atom(A), (A =:= dog);(A =:= cat) -> true; is_pet(A) -> false. % Warning: not all valid Erlang expressions can be used as guard expressions; |