Skip to content

Commit e894f8b

Browse files
authored
Update overview_scene.md code snippet
I ran into this while reading through the docs: as written this snippet wouldn't compile, because `button` expects a string, not a tuple.
1 parent 5a011d1 commit e894f8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/overview_scene.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ whose helper function is imported from the `Scenic.Components` module.
5252

5353
@graph Graph.build()
5454
|> text("Hello World", font_size: 22, translate: {20, 80})
55-
|> button({"Do Something", :btn_something}, translate: {20, 180})
55+
|> button("Do Something", translate: {20, 180})
5656

5757
def init( _scene_args, _options ) do
5858
{:ok, @graph, push: @graph}

0 commit comments

Comments
 (0)