Commit b5216e2e authored by Robert Hencke's avatar Robert Hencke Committed by Rob Pike

testing: compare Log to Println

Log always adds spaces between operands, like Println but unlike Print

R=golang-dev
CC=golang-dev
https://golang.org/cl/5504069
parent 86deacc0
...@@ -147,7 +147,7 @@ func (c *common) log(s string) { ...@@ -147,7 +147,7 @@ func (c *common) log(s string) {
c.output = append(c.output, decorate(s, true)...) c.output = append(c.output, decorate(s, true)...)
} }
// Log formats its arguments using default formatting, analogous to Print(), // Log formats its arguments using default formatting, analogous to Println(),
// and records the text in the error log. // and records the text in the error log.
func (c *common) Log(args ...interface{}) { c.log(fmt.Sprintln(args...)) } func (c *common) Log(args ...interface{}) { c.log(fmt.Sprintln(args...)) }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment