summaryrefslogtreecommitdiffhomepage
path: root/erlang.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'erlang.html.markdown')
-rw-r--r--erlang.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/erlang.html.markdown b/erlang.html.markdown
index 4e2f1d84..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;
@@ -292,7 +292,7 @@ calculateArea() ->
_ ->
io:format("We can only calculate area of rectangles or circles.")
end.
-
+
% Compile the module and create a process that evaluates `calculateArea` in the
% shell.
c(calculateGeometry).