0
我似乎总是有使用2“结束”的问题的在代码例如相同的块:使用如果foreach循环内声明
Worker = fun (File) ->
{ok, Device} = file:read_file([File]),
Li = string:tokens(erlang:binary_to_list(Device), "\n"),
Check = string:join(Li, "\r\n"),
FindStr = string:str(Check, "yellow"),
if
FindStr > 1 -> io:fwrite("found");
true -> io:fwrite("not found")
end,
end,
消息是“语法错误之前:‘结束’ “