From bbb5758340cd2b25d84bbf49f1c9fcc418477463 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Fri, 18 Jan 2013 19:42:54 +0100 Subject: [PATCH] Fix neotoma:file spec --- src/neotoma.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/neotoma.erl b/src/neotoma.erl index b9a4ffe..9d92d3c 100644 --- a/src/neotoma.erl +++ b/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),