summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@lshift.net>2008-08-14 08:23:56 +0100
committerMatthias Radestock <matthias@lshift.net>2008-08-14 08:23:56 +0100
commite311be27485b3bcf9245cf83f2ffdb14326105c0 (patch)
tree043215afca0379c957d0730838c5c2b7ddeebf8d
parent34a2db17b64cdc62497c765de6e41b590abb0628 (diff)
downloadrabbitmq-server-bug18994.tar.gz
more restrictive signature for rabbit_misc:r/3bug18994
-rw-r--r--src/rabbit_misc.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl
index 2c57b16c..11ab0caf 100644
--- a/src/rabbit_misc.erl
+++ b/src/rabbit_misc.erl
@@ -66,8 +66,7 @@
-spec(get_config/2 :: (atom(), A) -> A).
-spec(set_config/2 :: (atom(), any()) -> 'ok').
-spec(dirty_read/1 :: ({atom(), any()}) -> {'ok', any()} | not_found()).
--spec(r/3 :: (#resource{virtual_host :: vhost()} | vhost(), K, name()) ->
- r(K) when is_subtype(K, atom())).
+-spec(r/3 :: (vhost(), K, name()) -> r(K) when is_subtype(K, atom())).
-spec(r/2 :: (vhost(), K) -> #resource{virtual_host :: vhost(),
kind :: K,
name :: '_'}