1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-11 17:24:29 +02:00

Fix syntax error: Remove semicolon from last branch of erlang if-expression.

http://erlang.org/doc/reference_manual/expressions.html#id78310
This commit is contained in:
nomatteus
2015-03-30 16:13:26 -04:00
parent deda210b16
commit 3c565a5535

View File

@@ -206,7 +206,7 @@ max(X, Y) ->
if if
X > Y -> X; X > Y -> X;
X < Y -> Y; X < Y -> Y;
true -> nil; true -> nil
end. end.
% Warning: at least one of the guards in the `if` expression must evaluate to true; % Warning: at least one of the guards in the `if` expression must evaluate to true;