Skip to content

Commit

Permalink
Merge pull request #136 from rndstr/patch-1
Browse files Browse the repository at this point in the history
Fix missing err assignment in README code snippet
  • Loading branch information
mattfarina committed Nov 26, 2019
2 parents 25911d3 + 63379b6 commit 7b03774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ if err != nil {
// Handle constraint not being parseable.
}

v, _ := semver.NewVersion("1.3")
v, err := semver.NewVersion("1.3")
if err != nil {
// Handle version not being parseable.
}
Expand Down

0 comments on commit 7b03774

Please sign in to comment.