mirror of
https://github.com/golang/go.git
synced 2025-10-19 11:03:18 +00:00
flag: replace interface{} -> any for textValue.Get method
Make it literally match the Getter interface.
Change-Id: I73f03780ba1d3fd2230e0e5e2343d40530d9e6d8
GitHub-Last-Rev: 398b90b2fb
GitHub-Pull-Request: golang/go#71975
Reviewed-on: https://go-review.googlesource.com/c/go/+/652795
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
d31c805535
commit
b3e36364b9
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ func (v textValue) Set(s string) error {
|
|||
return v.p.UnmarshalText([]byte(s))
|
||||
}
|
||||
|
||||
func (v textValue) Get() interface{} {
|
||||
func (v textValue) Get() any {
|
||||
return v.p
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue