Skip to content

Commit

Permalink
doc: fix example in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bfabio committed Jun 4, 2024
1 parent 712c938 commit 8439015
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ This parser performs syntactic and semantic validation according to the
## Example usage as a library

```go
parser := publiccode.NewDefaultParser()
parser, err := publiccode.NewDefaultParser()

// error handling

publiccode, err := parser.Parse("file:///path/to/local/dir/publiccode.yml")
// OR
Expand Down

0 comments on commit 8439015

Please sign in to comment.