From 4ab66fe06bd3a525cb1363ffd16405a637c77448 Mon Sep 17 00:00:00 2001 From: mstrYoda Date: Mon, 28 Sep 2020 14:21:27 +0300 Subject: [PATCH] remove redundant parentheses, remove wrong parameter --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5eab6ef0..6cbb63c6 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ go get github.com/blushft/go-diagrams Create a diagram: ```golang -d, err := diagram.New(diagram.Name("my-diagram"), diagram.Filename("diagram"))) +d, err := diagram.New(diagram.Label("my-diagram"), diagram.Filename("diagram")) if err != nil { log.Fatal(err) } @@ -71,7 +71,7 @@ d.Connect(fw, sw) Render the output: ```golang -if err := e.Render(); err != nil { +if err := d.Render(); err != nil { log.Fatal(err) } ```