Skip to content

Commit 2001a39

Browse files
committed
Allow users to parametrize Qex.t
1 parent 0b3cd65 commit 2001a39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/qex.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ defmodule Qex do
2323
"#Qex<[1, 2, 3, 4, 5]>"
2424
"""
2525

26-
@opaque t :: %__MODULE__{}
26+
@opaque t(type) :: %__MODULE__{:data => :queue.queue(type)}
27+
@opaque t() :: %__MODULE__{:data => :queue.queue()}
2728

2829
defstruct data: :queue.new
2930

0 commit comments

Comments
 (0)