Skip to content

Commit

Permalink
Merge pull request #7 from mstrYoda/master
Browse files Browse the repository at this point in the history
fix Readme: remove redundant parentheses, remove wrong parameter
  • Loading branch information
tntobias authored Oct 1, 2020
2 parents 3838c95 + 4ab66fe commit 5cb928d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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)
}
```
Expand Down

0 comments on commit 5cb928d

Please sign in to comment.