Skip to content

Commit 08f7a72

Browse files
committed
improve modify spec
1 parent c20a268 commit 08f7a72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/scenic/graph.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ defmodule Scenic.Graph do
508508
end
509509
end
510510

511-
@spec modify(graph :: Graph.t(), id :: any, action :: function) :: Graph.t()
511+
@spec modify(graph :: Graph.t(), id :: any, action :: (... -> Primitive.t())) :: Graph.t()
512512
def modify(graph, id, action)
513513

514514
# pass in an atom based id, and it will transform all mapped uids

0 commit comments

Comments
 (0)