]> Cypherpunks repositories - gostls13.git/commitdiff
flag: update comment to refer to Output, not out
authorIan Lance Taylor <iant@golang.org>
Thu, 27 Feb 2020 19:11:48 +0000 (11:11 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 27 Feb 2020 23:20:01 +0000 (23:20 +0000)
The out method was renamed to Output in CL 70391 for #17628 and #21888.

Fixes #37514

Change-Id: I99be47b5030ccbbf10a056df9fcc3c97cb99b015
Reviewed-on: https://go-review.googlesource.com/c/go/+/221383
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/flag/flag.go

index 6a516175245b677d5388338e61c53ab297a8b858..abf20b6240dc4190d37a75ed5b6affd9b050c995 100644 (file)
@@ -331,7 +331,7 @@ type FlagSet struct {
        formal        map[string]*Flag
        args          []string // arguments after flags
        errorHandling ErrorHandling
-       output        io.Writer // nil means stderr; use out() accessor
+       output        io.Writer // nil means stderr; use Output() accessor
 }
 
 // A Flag represents the state of a flag.