Permalink
Browse files

Fix neotoma:file spec

  • Loading branch information...
1 parent aa9559a commit bbb5758340cd2b25d84bbf49f1c9fcc418477463 @tuncer tuncer committed Jan 18, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/neotoma.erl
View
@@ -14,12 +14,12 @@ main([Filename | Args]) ->
%% @doc Generates a parser from the specified file.
%% @equiv file(Filename, [])
--spec file(file:filename()) -> ok.
+-spec file(file:filename()) -> ok | {error, atom()}.
file(InputGrammar) ->
file(InputGrammar, []).
%% @doc Generates a parser from the specified file with the given options.
--spec file(file:filename(), [option()]) -> ok.
+-spec file(file:filename(), [option()]) -> ok | {error, atom()}.
file(InputGrammar, Options) ->
Basename = filename:basename(InputGrammar, ".peg"),
InputDir = filename:dirname(InputGrammar),

0 comments on commit bbb5758

Please sign in to comment.