From: Alan Donovan Date: Thu, 29 Jun 2017 17:32:54 +0000 (-0400) Subject: log: mention names of flag constants in {Set,}Flags doc comments X-Git-Tag: go1.14beta1~993 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5477623031a3f2d1384a74d0cf6b47eb9f8275ff;p=gostls13.git log: mention names of flag constants in {Set,}Flags doc comments Change-Id: I1217f07530dc7586fd7b933bc6a65bad163782db Reviewed-on: https://go-review.googlesource.com/c/go/+/47232 Reviewed-by: Andrew Bonventre Run-TryBot: Andrew Bonventre TryBot-Result: Gobot Gobot --- diff --git a/src/log/log.go b/src/log/log.go index 1bf39ae9a3..216cfe0322 100644 --- a/src/log/log.go +++ b/src/log/log.go @@ -236,6 +236,7 @@ func (l *Logger) Panicln(v ...interface{}) { } // Flags returns the output flags for the logger. +// The flag bits are Ldate, Ltime, and so on. func (l *Logger) Flags() int { l.mu.Lock() defer l.mu.Unlock() @@ -243,6 +244,7 @@ func (l *Logger) Flags() int { } // SetFlags sets the output flags for the logger. +// The flag bits are Ldate, Ltime, and so on. func (l *Logger) SetFlags(flag int) { l.mu.Lock() defer l.mu.Unlock() @@ -278,11 +280,13 @@ func SetOutput(w io.Writer) { } // Flags returns the output flags for the standard logger. +// The flag bits are Ldate, Ltime, and so on. func Flags() int { return std.Flags() } // SetFlags sets the output flags for the standard logger. +// The flag bits are Ldate, Ltime, and so on. func SetFlags(flag int) { std.SetFlags(flag) }