Add binary_part to the list of guard functions

This commit is contained in:
José Valim
2012-07-24 13:04:33 +02:00
parent 10d021f1cb
commit 152c784a07
4 changed files with 25 additions and 6 deletions
+1 -3
View File
@@ -254,9 +254,7 @@ in_erlang_functions() ->
{ abs, 1 },
{ atom_to_binary, 2 },
{ atom_to_list, 1 },
% Those are allowed in guard clauses, so we need to bring them back.
% { binary_part, 2 },
% { binary_part, 3 },
{ binary_part, 3 },
{ binary_to_atom, 2 },
{ binary_to_existing_atom, 2 },
{ binary_to_list, 1 },