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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user