diff options
| author | Matthias Radestock <matthias@rabbitmq.com> | 2013-08-05 15:17:22 +0100 |
|---|---|---|
| committer | Matthias Radestock <matthias@rabbitmq.com> | 2013-08-05 15:17:22 +0100 |
| commit | 06624451996a382461fd41a9f6cfadc919129573 (patch) | |
| tree | 508e6cce3897f6f57e5b6c5093dfb1160ab0f358 | |
| parent | d081e9ff99b4caf59f128f940a7e76559c59f19f (diff) | |
| download | rabbitmq-server-bug25686.tar.gz | |
refactor type specbug25686
| -rw-r--r-- | src/rabbit_misc.erl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl index e4016e83..0c04cb42 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'). |
