1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-16 03:34:53 +02:00

Merge pull request #1025 from nomatteus/erlang-if-fix

[erlang/en] Fix syntax error in erlang if-expression
This commit is contained in:
ven
2015-03-30 22:54:14 +02:00

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;