From beb08c61b0257f4bdb3e5fde87c6bbd9ae905135 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlio=20C=C3=A9sar=20Batista?= Date: Thu, 3 Nov 2022 15:48:36 -0300 Subject: [PATCH] Fix README snippet --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 988d4319d..7d5054d6d 100644 --- a/README.md +++ b/README.md @@ -98,13 +98,13 @@ import ( // ...modifying the diagram `x -> y` from above // Create a shape with the ID, "meow" -graph, err = d2oracle.Create(graph "meow") +graph, err = d2oracle.Create(graph, "meow") // Style the shape green -graph, err = d2oracle.Set(graph "meow.style.fill", "green") +graph, err = d2oracle.Set(graph, "meow.style.fill", "green") // Create a shape with the ID, "cat" -graph, err = d2oracle.Create(graph "cat") +graph, err = d2oracle.Create(graph, "cat") // Move the shape "meow" inside the container "cat" -graph, err = d2oracle.Move(graph "meow", "cat.meow") +graph, err = d2oracle.Move(graph, "meow", "cat.meow") // Prints formatted D2 code println(d2format.Format(graph.AST)) ```