diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2011-10-15 16:20:26 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2011-10-15 16:20:26 +0100 |
commit | a97c0c40d238a1ac81d2f08c8ecd5bba1fb310b7 (patch) | |
tree | d4b94946a680cbf6ab52ce66cc31834e3bbf7c79 | |
parent | c73f8e1e885ae7d4d09a4bac9afc5810abd80ee8 (diff) | |
download | rabbitmq-server-a97c0c40d238a1ac81d2f08c8ecd5bba1fb310b7.tar.gz |
cosmetic + correct specs for lqueue:peek{_r}
-rw-r--r-- | src/lqueue.erl | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/lqueue.erl b/src/lqueue.erl index 52ea8e2f..04b40706 100644 --- a/src/lqueue.erl +++ b/src/lqueue.erl @@ -26,23 +26,23 @@ -export_type([?MODULE/0]). -opaque(?MODULE() :: {non_neg_integer(), ?QUEUE()}). --type(value() :: any()). --type(result() :: 'empty' | {'value', value()}). - --spec(new/0 :: () -> ?MODULE()). --spec(is_empty/1 :: (?MODULE()) -> boolean()). --spec(len/1 :: (?MODULE()) -> non_neg_integer()). --spec(in/2 :: (value(), ?MODULE()) -> ?MODULE()). --spec(in_r/2 :: (value(), ?MODULE()) -> ?MODULE()). --spec(out/1 :: (?MODULE()) -> {result(), ?MODULE()}). --spec(out_r/1 :: (?MODULE()) -> {result(), ?MODULE()}). --spec(join/2 :: (?MODULE(), ?MODULE()) -> ?MODULE()). --spec(foldl/3 :: (fun ((value(), B) -> B), B, ?MODULE()) -> B). --spec(foldr/3 :: (fun ((value(), B) -> B), B, ?MODULE()) -> B). +-type(value() :: any()). +-type(result() :: 'empty' | {'value', value()}). + +-spec(new/0 :: () -> ?MODULE()). +-spec(is_empty/1 :: (?MODULE()) -> boolean()). +-spec(len/1 :: (?MODULE()) -> non_neg_integer()). +-spec(in/2 :: (value(), ?MODULE()) -> ?MODULE()). +-spec(in_r/2 :: (value(), ?MODULE()) -> ?MODULE()). +-spec(out/1 :: (?MODULE()) -> {result(), ?MODULE()}). +-spec(out_r/1 :: (?MODULE()) -> {result(), ?MODULE()}). +-spec(join/2 :: (?MODULE(), ?MODULE()) -> ?MODULE()). +-spec(foldl/3 :: (fun ((value(), B) -> B), B, ?MODULE()) -> B). +-spec(foldr/3 :: (fun ((value(), B) -> B), B, ?MODULE()) -> B). -spec(from_list/1 :: ([value()]) -> ?MODULE()). --spec(to_list/1 :: (?MODULE()) -> [value()]). --spec(peek/1 :: (?MODULE) -> result()). --spec(peek_r/1 :: (?MODULE) -> result()). +-spec(to_list/1 :: (?MODULE()) -> [value()]). +-spec(peek/1 :: (?MODULE()) -> result()). +-spec(peek_r/1 :: (?MODULE()) -> result()). -endif. |