Skip to content

Commit 7c29964

Browse files
committed
fix doc and doctest
1 parent 91ca79f commit 7c29964

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/qex.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ defmodule Qex do
213213
214214
iex> q1 = Qex.new 1..3
215215
iex> Qex.last(q1)
216-
{:value, 1}
216+
{:value, 3}
217217
iex> q2 = Qex.new []
218218
iex> Qex.last(q2)
219219
:empty
@@ -228,7 +228,7 @@ defmodule Qex do
228228
229229
iex> q1 = Qex.new 1..3
230230
iex> Qex.last!(q1)
231-
1
231+
3
232232
"""
233233
@spec last!(t) :: term | no_return
234234
def last!(%__MODULE__{data: q}) do

0 commit comments

Comments
 (0)