fix spec of wildcard/1

This commit is contained in:
Feng 2016-02-16 02:16:55 +08:00
parent 87a2f2680c
commit e605dcb111
1 changed files with 1 additions and 5 deletions

View File

@ -22,10 +22,6 @@
-export([join/1, feed_var/3, is_queue/1, systop/1]).
-ifdef(TEST).
-compile(export_all).
-endif.
-type topic() :: binary().
-type word() :: '' | '+' | '#' | binary().
@ -39,7 +35,7 @@
-define(MAX_TOPIC_LEN, 4096).
%% @doc Is wildcard topic?
-spec wildcard(topic()) -> true | false.
-spec wildcard(topic() | words()) -> true | false.
wildcard(Topic) when is_binary(Topic) ->
wildcard(words(Topic));
wildcard([]) ->