diff options
author | Spurlow <Spurlow@users.noreply.github.com> | 2015-11-27 11:41:44 +0700 |
---|---|---|
committer | Spurlow <Spurlow@users.noreply.github.com> | 2015-11-27 11:41:44 +0700 |
commit | 8fd639eeba5056e19f5e34d7bfb46533f14c4c6d (patch) | |
tree | 0de93044f986663d79df1d3d8a632334493effce | |
parent | 8a7d5b718642712fbc72b0c2f10a455ef23a5932 (diff) | |
parent | 5a62ebbc85cf8c7436ba071b87fb4a584275ebbf (diff) |
Merge pull request #2031 from byaruhaf/patch-1
[erlang/en] Replaced 'or' with a semicolons
-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; |