Skip to content

Commit ebde09a

Browse files
committed
fix inspect
again, well, I'm stupid and blind
1 parent abfd9b6 commit ebde09a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/impls/inspect.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ defimpl Inspect, for: Qex do
22
import Inspect.Algebra
33

44
def inspect(%Qex{} = q, opts) do
5-
concat ["Qex<#", to_doc(Enum.to_list(q), opts), ">"]
5+
concat ["#Qex<", to_doc(Enum.to_list(q), opts), ">"]
66
end
77
end

lib/qex.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defmodule Qex do
88
`Inspect`, `Collectable` and `Enumerable` are implemented
99
1010
iex> inspect Qex.new
11-
"Qex<#[]>"
11+
"#Qex<[]>"
1212
1313
iex> Enum.count Qex.new(1..5)
1414
5
@@ -20,7 +20,7 @@ defmodule Qex do
2020
[2, 3, 4]
2121
2222
iex> inspect Enum.into(1..5, %Qex{})
23-
"Qex<#[1, 2, 3, 4, 5]>"
23+
"#Qex<[1, 2, 3, 4, 5]>"
2424
"""
2525

2626
@opaque t :: %__MODULE__{}
@@ -31,12 +31,12 @@ defmodule Qex do
3131
Create a new queue from a range
3232
3333
iex> inspect Qex.new(1..3)
34-
"Qex<#[1, 2, 3]>"
34+
"#Qex<[1, 2, 3]>"
3535
3636
Create a new queue from a list
3737
3838
iex> inspect Qex.new([1, 2, 3])
39-
"Qex<#[1, 2, 3]>"
39+
"#Qex<[1, 2, 3]>"
4040
"""
4141
@spec new([term] | Range.t) :: t
4242
def new(init_data \\ [])

0 commit comments

Comments
 (0)