Skip to content

Commit 6c3c64d

Browse files
authored
Merge pull request #279 from axelson/fix-graph-find-docs-spec
Fix Scenic.Graph.find/2 docs and spec
2 parents 88b0c20 + 4162b61 commit 6c3c64d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/scenic/graph.ex

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -576,15 +576,13 @@ defmodule Scenic.Graph do
576576
577577
Pass in a function that accepts a primitive and returns a boolean.
578578
579-
Returns a list of tuples containing the matching id at the primitive.
580-
581-
`[{id, primitive}]`
579+
Returns a list of primitives.
582580
583581
__Warning:__ This function crawls the entire graph and is thus slower than
584582
accessing items via a fully-specified id.
585583
"""
586584

587-
@spec find(graph :: t(), (any -> as_boolean(term()))) :: list({any, Primitive.t()})
585+
@spec find(graph :: t(), (any -> as_boolean(term()))) :: list(Primitive.t())
588586
def find(graph, finder)
589587

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

0 commit comments

Comments
 (0)