Permalink
Browse files

Convert escript edoc type specs to real type specs

  • Loading branch information...
1 parent fa3168e commit 4601a66c716266213771bfc074443b1e108095d9 @mbbx6spp committed Jun 13, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 escript
View
@@ -9,15 +9,16 @@
-define(CMD, filename:basename(escript:script_name())).
%%%.
%%%' PUBLIC API
-%% @spec main(Args) -> void()
-%% where
-%% Args = [string()]
+-spec main(Args) -> void()
+ when
+ Args :: list(string()).
main(_)->
usage().
%%%.
%%%' PRIVATE FUNCTIONS
%% @private
+-spec usage() -> void().
usage() ->
io:format("Usage: ~s ...~n", [?CMD]),
halt(1).

0 comments on commit 4601a66

Please sign in to comment.