diff options
author | Alan Donovan <adonovan@google.com> | 2017-06-29 13:32:54 -0400 |
---|---|---|
committer | Andrew Bonventre <andybons@golang.org> | 2019-09-24 23:29:19 +0000 |
commit | 5477623031a3f2d1384a74d0cf6b47eb9f8275ff (patch) | |
tree | 3df400f86d5df54b9e5835ff684f38d3b78ef446 /src/log | |
parent | ee3dded36d69264998c39af0ec851371850d842b (diff) | |
download | go-5477623031a3f2d1384a74d0cf6b47eb9f8275ff.tar.gz go-5477623031a3f2d1384a74d0cf6b47eb9f8275ff.zip |
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 <andybons@golang.org>
Run-TryBot: Andrew Bonventre <andybons@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/log')
-rw-r--r-- | src/log/log.go | 4 |
1 files changed, 4 insertions, 0 deletions
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) } |