Skip to content

Commit

Permalink
Fix example index out of range error (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
slavick authored Jun 21, 2022
1 parent 4ec294d commit bfd4286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/go-migrations/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func main() {
flags.Parse(os.Args[1:])
args := flags.Args()

if len(args) < 2 {
if len(args) < 3 {
flags.Usage()
return
}
Expand Down

0 comments on commit bfd4286

Please sign in to comment.