mirror of https://github.com/golang/go.git
flag.Example() has this comment:
... one must execute, typically at the start of main (not init!):
flag.Parse()
We don't run it here because this is not a main function
This example function will be renamed to "main" at pkg.go.dev, which
makes the comment confusing.
See https://pkg.go.dev/flag#example-package.
This change modify the comment to clarify this situation.
Change-Id: I17357fdaaefe54791fff8fbbf6a33003af207f88
GitHub-Last-Rev:
|
||
|---|---|---|
| .. | ||
| example_func_test.go | ||
| example_test.go | ||
| example_textvar_test.go | ||
| example_value_test.go | ||
| export_test.go | ||
| flag.go | ||
| flag_test.go | ||