Skip to content

Commit ca779fb

Browse files
authored
Merge pull request #2 from paulperegud/parametrize_qex_t_type
Allow users to parametrize Qex.t
2 parents 0b3cd65 + 2001a39 commit ca779fb

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)