1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-13 18:24:39 +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
X > Y -> X;
X < Y -> Y;
true -> nil;
true -> nil
end.
% Warning: at least one of the guards in the `if` expression must evaluate to true;