Skip to content
Browse files

Merge pull request #19 from tuncer/spec

Fix neotoma:file spec
  • Loading branch information...
2 parents aa9559a + bbb5758 commit 3fd21aad4e1df9eedee6ba96cda2134ae42d8e88 @seancribbs committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/neotoma.erl
View
4 src/neotoma.erl
@@ -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 3fd21aa

Please sign in to comment.
Something went wrong with that request. Please try again.