Skip to content

Commit a4ed911

Browse files
authored
Update overview_graph.md to use :center symbol
The colon was missing from this symbol, which meant the snippet didn't actually work because `center` is an undefined function.
1 parent e894f8b commit a4ed911

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/overview_graph.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ one thing. When multiple primitives are put together, almost any standard UI can
1111
For example, the graph below shows the words "Hello World" around them.
1212

1313
@graph Graph.build(font: :roboto, font_size: 24)
14-
|> text("Hello World", text_align: center, translate: {300, 300})
14+
|> text("Hello World", text_align: :center, translate: {300, 300})
1515
|> circle(100, stroke: {2, :green}, translate: {300, 300})
1616

1717
In the example above, the first line creates a new graph and assigns two font styles to its root. The next two lines form a pipeline that adds primitives to the root

0 commit comments

Comments
 (0)