Skip to content

Commit a87e6ff

Browse files
authored
Merge pull request #212 from tylerhunt/docs-fix
Fix Graph.modify/3 examples
2 parents 9642150 + 3108143 commit a87e6ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/scenic/graph.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -762,9 +762,9 @@ defmodule Scenic.Graph do
762762
Examples:
763763
764764
graph
765-
|> Graph.modify( :explicit_id, &text("Updated Text 1") )
766-
|> Graph.modify( {:id, 123}, &text("Updated Text 2") )
767-
|> Graph.modify( &match?({:id,_},&1), &text("Updated Text 3") )
765+
|> Graph.modify( :explicit_id, &text(&1, "Updated Text 1") )
766+
|> Graph.modify( {:id, 123}, &text(&1, "Updated Text 2") )
767+
|> Graph.modify( &match?({:id,_},&1), &text(&1, "Updated Text 3") )
768768
"""
769769

770770
@spec modify(

0 commit comments

Comments
 (0)