diff options
| author | Russ Cox <rsc@golang.org> | 2016-10-20 15:05:51 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2016-10-26 16:13:40 +0000 |
| commit | 49543695c56486d6a941e55520b37a9d098d3379 (patch) | |
| tree | 171c24be185df7c89d8da3adfb32e41c62cea910 /src/encoding/json/encode_test.go | |
| parent | f9027d61ab48154e4cb29c50e356a3f462840e01 (diff) | |
| download | go-49543695c56486d6a941e55520b37a9d098d3379.tar.xz | |
flag: arrange for FlagSet.Usage to be non-nil by default
This allows callers to invoke f.Usage() themselves and get the default
usage handler instead of a panic (from calling a nil function).
Fixes #16955.
Change-Id: Ie337fd9e1f85daf78c5eae7b5c41d5ad8c1f89bf
Reviewed-on: https://go-review.googlesource.com/31576
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/encoding/json/encode_test.go')
0 files changed, 0 insertions, 0 deletions
