diff --git a/README.md b/README.md index 9434816..29a2684 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ go get github.com/cristalhq/flagx ## Example ```go -args := []string{"-t", "20s"} +args := []string{"-t", "20s"} // or os.Args[1:] var d time.Duration fset := flagx.NewFlagSet("testing", os.Stderr) diff --git a/example_test.go b/example_test.go index de1368a..ad37bbc 100644 --- a/example_test.go +++ b/example_test.go @@ -10,7 +10,7 @@ import ( ) func ExampleFlagSet() { - args := []string{"-t", "20s"} + args := []string{"-t", "20s"} // or os.Args[1:] var d time.Duration fset := flagx.NewFlagSet("testing", os.Stderr)