Skip to content

Commit ee4c00c

Browse files
committed
fix duration flag help
1 parent f0ff6c5 commit ee4c00c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flag/example_flagset_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func ExampleFlagSet() {
2525

2626
stop := func(args []string) {
2727
fs := flag.NewFlagSet("stop", flag.ContinueOnError)
28-
timeout := fs.Duration("timeout", time.Second, "stop timeout in `seconds`")
28+
timeout := fs.Duration("timeout", time.Second, "stop timeout duration (e.g. `3s`)")
2929
if err := fs.Parse(args); err != nil {
3030
fmt.Printf("error: %s", err)
3131
return

0 commit comments

Comments
 (0)