summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2013-08-05 15:17:22 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2013-08-05 15:17:22 +0100
commit6448f98abe1f344be7857538e3c1f2a170e2d3da (patch)
tree508e6cce3897f6f57e5b6c5093dfb1160ab0f358
parent20dbf2c54fe6281f2b2510bf25dcfe8cd09d2071 (diff)
downloadrabbitmq-server-git-6448f98abe1f344be7857538e3c1f2a170e2d3da.tar.gz
refactor type spec
-rw-r--r--src/rabbit_misc.erl8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl
index e4016e839c..0c04cb423a 100644
--- a/src/rabbit_misc.erl
+++ b/src/rabbit_misc.erl
@@ -142,9 +142,11 @@
when is_subtype(K, atom())).
-spec(r_arg/4 ::
(rabbit_types:vhost() | rabbit_types:r(atom()), K,
- rabbit_framing:amqp_table(), binary()) -> undefined |
- {error, {invalid_type, rabbit_framing:amqp_field_type()}} |
- rabbit_types:r(K) when is_subtype(K, atom())).
+ rabbit_framing:amqp_table(), binary()) ->
+ undefined |
+ rabbit_types:error(
+ {invalid_type, rabbit_framing:amqp_field_type()}) |
+ rabbit_types:r(K) when is_subtype(K, atom())).
-spec(rs/1 :: (rabbit_types:r(atom())) -> string()).
-spec(enable_cover/0 :: () -> ok_or_error()).
-spec(start_cover/1 :: ([{string(), string()} | string()]) -> 'ok').