Skip to content

Commit acb671d

Browse files
committed
Fix doctest
1 parent 7aeed2b commit acb671d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/image/math.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ defmodule Image.Math do
917917
iex> |> Image.Math.==([255, 0, 0])
918918
iex> |> Image.band_and!()
919919
iex> |> Image.Math.maxpos(3)
920-
{255, [{2, 2}], :maybe_overflow}
920+
{255, [{0, 1}, {1, 0}, {0, 0}], :maybe_overflow}
921921
922922
"""
923923
@spec maxpos(image :: Vimage.t(), n :: non_neg_integer()) ::

test/image_test.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ defmodule Image.Test do
99
doctest Image.Color
1010
doctest Image.BandFormat
1111
doctest Image.Blurhash
12+
doctest Image.Math
1213

1314
setup do
1415
Temp.track!()

0 commit comments

Comments
 (0)