]> Cypherpunks repositories - gostls13.git/commit
flag: document that Value.String must work on the zero value
authorIan Lance Taylor <iant@golang.org>
Mon, 15 Aug 2016 03:39:30 +0000 (20:39 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 23 Aug 2016 16:26:43 +0000 (16:26 +0000)
commit5e66ac9ac61efb045f8ae28ff0fc019a4a98b473
tree30528b8012e6c687a19b93e97497de255696c9e3
parenteb29ac7a7cf97cd364c9d343377b104bc3e90927
flag: document that Value.String must work on the zero value

Otherwise flag.PrintDefaults will fail when it tries to determine
whether the default is the zero value.

Fixes #16694.

Change-Id: I253fbf11ffc0a9069fd48c2c3cf3074df53e3a03
Reviewed-on: https://go-review.googlesource.com/27003
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/flag/flag.go