From e605dcb1118b928a5da206b975ce025fbe9c8755 Mon Sep 17 00:00:00 2001 From: Feng Date: Tue, 16 Feb 2016 02:16:55 +0800 Subject: [PATCH] fix spec of wildcard/1 --- src/emqttd_topic.erl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/emqttd_topic.erl b/src/emqttd_topic.erl index 9f4c0988f..f3c1f1a33 100644 --- a/src/emqttd_topic.erl +++ b/src/emqttd_topic.erl @@ -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([]) ->