Skip to content

Commit

Permalink
Merge pull request massemanet#55 from leoliu/master
Browse files Browse the repository at this point in the history
Clean up fdoc:scan_lines/2
  • Loading branch information
massemanet committed Feb 23, 2016
2 parents f3e9cf5 + 72de05d commit b0bd2ad
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/fdoc.erl
Expand Up @@ -257,12 +257,7 @@ scan_lines(S0 = "-spec" ++ _, Acc) ->
{done, Result, S1} ->
case Result of
{ok, Tokens, _EndLocation} ->
Text = lists:flatten(
lists:map(
fun(Token) ->
token_text(Token)
end,
Tokens)),
Text = lists:flatten(lists:map(fun token_text/1, Tokens)),
scan_lines(S1, [Text|Acc]);
_ ->
%% Couldn't parse: ignore the spec
Expand Down

0 comments on commit b0bd2ad

Please sign in to comment.