Skip to content

Commit ed9e1fc

Browse files
authored
Merge pull request #97 from axelson/dialyzer-fix
Fix dialyzer specs for %Graph{} Thank you!
2 parents 5c12c12 + 34dc155 commit ed9e1fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/scenic/graph.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ defmodule Scenic.Graph do
144144
primitives: map,
145145
ids: map,
146146
next_uid: pos_integer,
147-
add_to: pos_integer
147+
add_to: non_neg_integer
148148
}
149149

150150
@type key :: {:graph, Scenic.Scene.ref(), any}
@@ -730,7 +730,7 @@ defmodule Scenic.Graph do
730730
@spec modify(
731731
graph :: t(),
732732
id :: any | (any -> as_boolean(term())),
733-
action :: (... -> Primitive.t())
733+
action :: (any -> Primitive.t())
734734
) :: t()
735735
def modify(graph, id, action)
736736

0 commit comments

Comments
 (0)