summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2011-10-15 16:20:26 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2011-10-15 16:20:26 +0100
commita97c0c40d238a1ac81d2f08c8ecd5bba1fb310b7 (patch)
treed4b94946a680cbf6ab52ce66cc31834e3bbf7c79
parentc73f8e1e885ae7d4d09a4bac9afc5810abd80ee8 (diff)
downloadrabbitmq-server-a97c0c40d238a1ac81d2f08c8ecd5bba1fb310b7.tar.gz
cosmetic + correct specs for lqueue:peek{_r}
-rw-r--r--src/lqueue.erl32
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.