Skip to content

Commit

Permalink
Update example again
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg committed May 21, 2022
1 parent 0df126a commit 499df2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 499df2b

Please sign in to comment.