From bfd4286c0fda61ce69e54a272fdf90e72b301aa5 Mon Sep 17 00:00:00 2001 From: John Slavick Date: Mon, 20 Jun 2022 20:37:46 -0500 Subject: [PATCH] Fix example index out of range error (#368) --- examples/go-migrations/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/go-migrations/main.go b/examples/go-migrations/main.go index 7fb548b0d..ae1bc4280 100644 --- a/examples/go-migrations/main.go +++ b/examples/go-migrations/main.go @@ -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 }