Skip to content

Commit 9314020

Browse files
authored
Merge pull request #269 from axelson/fix-spec
Fix Scenic.ViewPort.info/1 typespec Good catch. Sometimes those Dialyzer errors are very confusing to figure out. Much appreciated.
2 parents 3fdddce + 5171d57 commit 9314020

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/scenic/view_port.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ defmodule Scenic.ViewPort do
236236
@doc """
237237
Retrieve a `%ViewPort{}` struct given just the viewport's pid
238238
"""
239-
@spec info(pid :: ViewPort.t() | GenServer.server()) :: map
239+
@spec info(pid :: ViewPort.t() | GenServer.server()) :: {:ok, map}
240240
def info(%ViewPort{pid: pid}), do: info(pid)
241241

242242
def info(pid) when is_pid(pid) or is_atom(pid) do

0 commit comments

Comments
 (0)