]> Cypherpunks repositories - gostls13.git/commitdiff
log: mention names of flag constants in {Set,}Flags doc comments
authorAlan Donovan <adonovan@google.com>
Thu, 29 Jun 2017 17:32:54 +0000 (13:32 -0400)
committerAndrew Bonventre <andybons@golang.org>
Tue, 24 Sep 2019 23:29:19 +0000 (23:29 +0000)
Change-Id: I1217f07530dc7586fd7b933bc6a65bad163782db
Reviewed-on: https://go-review.googlesource.com/c/go/+/47232
Reviewed-by: Andrew Bonventre <andybons@golang.org>
Run-TryBot: Andrew Bonventre <andybons@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/log/log.go

index 1bf39ae9a368bf60d818d745e563173abb24324c..216cfe03222a9704ad16f3dfc81a0e5cd93fc90a 100644 (file)
@@ -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)
 }