Skip to content

Commit ee4b58d

Browse files
committed
log: document that log messages end in newlines
Fixes #16564. Change-Id: Idd7b3c8f1d8415acd952d1efb6dc35ba4191805d Reviewed-on: https://go-review.googlesource.com/31578 Run-TryBot: Russ Cox <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Quentin Smith <[email protected]>
1 parent fc88a0f commit ee4b58d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/log/log.go

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// Panic[f|ln], which are easier to use than creating a Logger manually.
99
// That logger writes to standard error and prints the date and time
1010
// of each logged message.
11+
// Every log message is output on a separate line: if the message being
12+
// printed does not end in a newline, the logger will add one.
1113
// The Fatal functions call os.Exit(1) after writing the log message.
1214
// The Panic functions call panic after writing the log message.
1315
package log

0 commit comments

Comments
 (0)