We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0ff6c5 commit ee4c00cCopy full SHA for ee4c00c
src/flag/example_flagset_test.go
@@ -25,7 +25,7 @@ func ExampleFlagSet() {
25
26
stop := func(args []string) {
27
fs := flag.NewFlagSet("stop", flag.ContinueOnError)
28
- timeout := fs.Duration("timeout", time.Second, "stop timeout in `seconds`")
+ timeout := fs.Duration("timeout", time.Second, "stop timeout duration (e.g. `3s`)")
29
if err := fs.Parse(args); err != nil {
30
fmt.Printf("error: %s", err)
31
return
0 commit comments